{"action":"created","issue":{"url":"https://api.github.com/repos/pixijs/pixi.js/issues/2557","repository_url":"https://api.github.com/repos/pixijs/pixi.js","labels_url":"https://api.github.com/repos/pixijs/pixi.js/issues/2557/labels{/name}","comments_url":"https://api.github.com/repos/pixijs/pixi.js/issues/2557/comments","events_url":"https://api.github.com/repos/pixijs/pixi.js/issues/2557/events","html_url":"https://github.com/pixijs/pixi.js/issues/2557","id":154117935,"number":2557,"title":"PIXI V4 - Different width/height values for container than in V3.","user":{"login":"SlawomirMazgaj","id":2122619,"avatar_url":"https://avatars.githubusercontent.com/u/2122619?v=3","gravatar_id":"","url":"https://api.github.com/users/SlawomirMazgaj","html_url":"https://github.com/SlawomirMazgaj","followers_url":"https://api.github.com/users/SlawomirMazgaj/followers","following_url":"https://api.github.com/users/SlawomirMazgaj/following{/other_user}","gists_url":"https://api.github.com/users/SlawomirMazgaj/gists{/gist_id}","starred_url":"https://api.github.com/users/SlawomirMazgaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SlawomirMazgaj/subscriptions","organizations_url":"https://api.github.com/users/SlawomirMazgaj/orgs","repos_url":"https://api.github.com/users/SlawomirMazgaj/repos","events_url":"https://api.github.com/users/SlawomirMazgaj/events{/privacy}","received_events_url":"https://api.github.com/users/SlawomirMazgaj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-10T22:06:59Z","updated_at":"2016-05-13T10:54:41Z","closed_at":null,"body":"Hi guys, just noticed something weird. I was playing with [Container Example](http://pixijs.github.io/examples/index.html?s=basics&f=container.js&title=Container) a bit and I got to the point where I'm getting different values of width and height in pixi v3.0.11 and Latest dev v4.\r\n\r\nI was adding a single bunny to a container and checking width and height of the container. As expected it was same as bunny size. Then I moved bunny inside container and container values were still the same. At the end I made another container (empty) and added it to existing one and now V3 is showing me width and height from 0, 0 to bunny.x+bunny.width, bunny.y+bunny.height.\r\nV4 however is still showing me size of the bunny.\r\n\r\nHere's the code I used:\r\n```js\r\nvar renderer = PIXI.autoDetectRenderer(800, 600,{backgroundColor : 0x1099bb});\r\ndocument.body.appendChild(renderer.view);\r\nvar stage = new PIXI.Container();\r\n\r\nvar container = new PIXI.Container();\r\nstage.addChild(container);\r\n\r\nvar bunny = PIXI.Sprite.fromImage('_assets/basics/bunny.png');\r\nbunny.x = 140;\r\nbunny.y = 140;\r\ncontainer.addChild(bunny);\r\n\r\nvar tmp = new PIXI.Container();\r\ncontainer.addChild(tmp);\r\n\r\nsetTimeout(function() {\r\n  console.log(\"Bunny => \" + bunny.width + \" | \" + bunny.height);\r\n  console.log(\"Container => \" + container.width + \" | \" + container.height);\r\n}\r\n, 1000);\r\n\r\nanimate();\r\nfunction animate() {\r\n    requestAnimationFrame(animate);\r\n    renderer.render(stage);\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/pixijs/pixi.js/issues/comments/219012283","html_url":"https://github.com/pixijs/pixi.js/issues/2557#issuecomment-219012283","issue_url":"https://api.github.com/repos/pixijs/pixi.js/issues/2557","id":219012283,"user":{"login":"ivanpopelyshev","id":695831,"avatar_url":"https://avatars.githubusercontent.com/u/695831?v=3","gravatar_id":"","url":"https://api.github.com/users/ivanpopelyshev","html_url":"https://github.com/ivanpopelyshev","followers_url":"https://api.github.com/users/ivanpopelyshev/followers","following_url":"https://api.github.com/users/ivanpopelyshev/following{/other_user}","gists_url":"https://api.github.com/users/ivanpopelyshev/gists{/gist_id}","starred_url":"https://api.github.com/users/ivanpopelyshev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivanpopelyshev/subscriptions","organizations_url":"https://api.github.com/users/ivanpopelyshev/orgs","repos_url":"https://api.github.com/users/ivanpopelyshev/repos","events_url":"https://api.github.com/users/ivanpopelyshev/events{/privacy}","received_events_url":"https://api.github.com/users/ivanpopelyshev/received_events","type":"User","site_admin":false},"created_at":"2016-05-13T10:54:41Z","updated_at":"2016-05-13T10:54:41Z","body":"Backported fix and merged it. Im not sure when it will be published in \"bin\" folder or npm."}}