Skip to content

Commit 4102378

Browse files
committed
PIXI.DisplayObjectContainer calls updateTransform at the start of getBounds to help avoid the bounds being out of date.
1 parent c0ba439 commit 4102378

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/pixi/display/DisplayObjectContainer.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,8 @@ PIXI.DisplayObjectContainer.prototype.getBounds = function()
328328
return PIXI.EmptyRectangle;
329329
}
330330

331+
this.updateTransform();
332+
331333
var minX = Infinity;
332334
var minY = Infinity;
333335

0 commit comments

Comments
 (0)