mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 06:28:30 +00:00
reverted using getTextBounds for cotainer getBounds()
This commit is contained in:
parent
729cb22958
commit
bc6ec0a124
1 changed files with 10 additions and 19 deletions
|
@ -407,19 +407,9 @@ var Container = new Class({
|
|||
{
|
||||
var entry = children[i];
|
||||
|
||||
if (entry.getTextBounds)
|
||||
{
|
||||
var textBounds = entry.getTextBounds().global;
|
||||
tempRect.setTo(textBounds.x, textBounds.y, textBounds.width, textBounds.height);
|
||||
}
|
||||
else if (entry.getBounds)
|
||||
if (entry.getBounds)
|
||||
{
|
||||
entry.getBounds(tempRect);
|
||||
}
|
||||
else
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!hasSetFirst)
|
||||
{
|
||||
|
@ -432,6 +422,7 @@ var Container = new Class({
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return output;
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue