From b08f5083496e3728e781ebf0347ead057910512f Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Fri, 8 Aug 2008 03:32:57 +0000 Subject: [PATCH] Oh, fuck that. Let's just set the explicit width/height, because if something's never measured then it never gets these set. This might break something. git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@615 ed5b42cb-e716-0410-a449-f6a68f950b19 --- src/as/com/threerings/flex/FlexWrapper.as | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/as/com/threerings/flex/FlexWrapper.as b/src/as/com/threerings/flex/FlexWrapper.as index 9d7bb972..411ae4e5 100644 --- a/src/as/com/threerings/flex/FlexWrapper.as +++ b/src/as/com/threerings/flex/FlexWrapper.as @@ -34,16 +34,9 @@ public class FlexWrapper extends UIComponent { // don't capture mouse events in this wrapper mouseEnabled = false; - _obj = object; addChild(object); + width = object.width; + height = object.height; } - - override protected function measure () :void - { - measuredWidth = _obj.width; - measuredHeight = _obj.height; - } - - protected var _obj :DisplayObject; } }