From 0250be64ac5e91a0f6d538b452d3d677a994e1df Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Sat, 16 Jun 2007 00:33:48 +0000 Subject: [PATCH] Don't turn on variableRowHeight for every menu, but do have submenus inherit their parent's setting. It turns out, it wasn't just a problem with MediaWrapper. Using any image-based icon seems to cause flex internal boo-boos. Too weird. git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@267 ed5b42cb-e716-0410-a449-f6a68f950b19 --- src/as/com/threerings/flex/CommandMenu.as | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/as/com/threerings/flex/CommandMenu.as b/src/as/com/threerings/flex/CommandMenu.as index 3e085e92..e4aeb2c7 100644 --- a/src/as/com/threerings/flex/CommandMenu.as +++ b/src/as/com/threerings/flex/CommandMenu.as @@ -93,7 +93,6 @@ public class CommandMenu extends ScrollableArrowMenu public function CommandMenu () { super(); - variableRowHeight = true; itemRenderer = new ClassFactory(CommandMenuItemRenderer); @@ -185,6 +184,7 @@ public class CommandMenu extends ScrollableArrowMenu menu.maxHeight = this.maxHeight; menu.verticalScrollPolicy = this.verticalScrollPolicy; menu.arrowScrollPolicy = this.arrowScrollPolicy; + menu.variableRowHeight = this.variableRowHeight; menu.parentMenu = this; menu.owner = this;