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:
@@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user