diff --git a/src/as/com/threerings/flex/FlexWrapper.as b/src/as/com/threerings/flex/FlexWrapper.as index 411ae4e5..edb96ce8 100644 --- a/src/as/com/threerings/flex/FlexWrapper.as +++ b/src/as/com/threerings/flex/FlexWrapper.as @@ -30,13 +30,15 @@ import mx.core.UIComponent; */ public class FlexWrapper extends UIComponent { - public function FlexWrapper (object :DisplayObject) + public function FlexWrapper (object :DisplayObject, inheritSize :Boolean = false) { // don't capture mouse events in this wrapper mouseEnabled = false; addChild(object); - width = object.width; - height = object.height; + if (inheritSize) { + width = object.width; + height = object.height; + } } } }