These are chat archives for pixijs/pixi.js
I was wondering...using pixijs 4.5.1, immediately after adding a child (width: 256px, height: 256px) to a PIXI.Container, shouldn't the container reflect in its dimensions the sum of its content?
I get width: 0, height: 0;
// sprite is a PIXI.Sprite with defined dimensions... console.log(sprite.width); // output: 256 console.log(sprite.height); // output: 256 let container = PIXI.Container(); container.addChild(sprite); console.log(container.width); // output: 0 console.log(container.height); // output: 0
I can imagine that for any reason the containers dimensions are not instantly updated after adding a child to it... any methods i can call to update its dimensions manually?
!sprite.visible) don't add to the calculation of a containers bounds. Thanks!