Animal
19 May 2009, 11:35 PM
In a Menu, the menu colour and incised line is placed into the Element by the "x-menu" CSS class.
This should really only be used if that menu is actually being used to contain menu Items. ie, if it being layed out by the MenuLayout class.
Now that the Menu is a Container, it can be given for example an hbox layout, and be used to house a multi-column menu.
In this case, we don't want that background; the Menu is just being used as a Container.
I suggest that the "x-menu" class be added in onLayout (currently not implemented in MenuLayout) in the same way that TableLayout adds the class "x-table-layout-ct" to the Container's Element.
This should really only be used if that menu is actually being used to contain menu Items. ie, if it being layed out by the MenuLayout class.
Now that the Menu is a Container, it can be given for example an hbox layout, and be used to house a multi-column menu.
In this case, we don't want that background; the Menu is just being used as a Container.
I suggest that the "x-menu" class be added in onLayout (currently not implemented in MenuLayout) in the same way that TableLayout adds the class "x-table-layout-ct" to the Container's Element.