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:
Ray Greenwell
2005-04-20 17:15:36 +00:00
parent d75c0e83e6
commit 3fded0305b
@@ -252,6 +252,11 @@ public class ButtonSprite extends Sprite
{
super.init();
// lay out the label if not already
if (!_label.isLaidOut()) {
_label.layout(_mgr.getMediaPanel());
}
updateBounds();
}