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
This commit is contained in:
Ray Greenwell
2007-06-16 00:33:48 +00:00
parent 7a6d334a99
commit 0250be64ac
+1 -1
View File
@@ -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;