Make this optional, and not the default.

Turns out a bunch of shit makes the wrapper size a little bigger,
and some things seem to freak out when the wrapper has a size,
even when includeInLayout=false.
Flex you very much.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@616 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
Ray Greenwell
2008-08-08 03:46:11 +00:00
parent b08f508349
commit 51cf6b65be
+5 -3
View File
@@ -30,13 +30,15 @@ import mx.core.UIComponent;
*/ */
public class FlexWrapper extends 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 // don't capture mouse events in this wrapper
mouseEnabled = false; mouseEnabled = false;
addChild(object); addChild(object);
width = object.width; if (inheritSize) {
height = object.height; width = object.width;
height = object.height;
}
} }
} }
} }