Let's lay ourselves out, if possible, when we're added to the mediapanel,
rather than relying on external initialization. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3509 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -252,6 +252,11 @@ public class ButtonSprite extends Sprite
|
|||||||
{
|
{
|
||||||
super.init();
|
super.init();
|
||||||
|
|
||||||
|
// lay out the label if not already
|
||||||
|
if (!_label.isLaidOut()) {
|
||||||
|
_label.layout(_mgr.getMediaPanel());
|
||||||
|
}
|
||||||
|
|
||||||
updateBounds();
|
updateBounds();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user