-
29 Jun 2008 11:44 PM #1
[2.1] same submenus are hiding every 2nd line
[2.1] same submenus are hiding every 2nd line
I was trying to use the same submenuobject for several menu entries to save memory and DOM Space instead of creating submenu objects for each menuentry.
It basically works. The odd thing is, when using the same submenu for items that are listed under each other and you are going to hover the mainmenu entries to show their submenus, every second submenu of the hovered entry is not displayed (thats because the menu.hide method is called with defer and thus will hide the previous menu. But as the new Menu is the same as the previous one it will be just hidden right after been shown.)
I was playing with the showDelay and hideDelay options with no luck.
I guess it has to be patched somewhere in ext.menu which i could not figure out yet.
Even more, when applying the patch from here to fix a different problem with the menu-hiding then the mainmenu entries will blink between the first and second mainmenu entries which have the same submenu object...
PHP Code:var sameSubmenu = new Ext.menu.Menu({
items:[{
text: 'i am subentry 1'
},
{
text: 'i am subentry 2'
}
]
}
var mainMenu = new Ext.menu.Menu({
items:[{
text: 'i am mainentry 1',
menu : sameSubmenu
},
{
text: 'i am mainentry 2',
menu : sameSubmenu
},
{
text: 'i am mainentry 3',
menu : sameSubmenu
},
{
text: 'i am mainentry 4',
menu : sameSubmenu
}
]
}
Extensions:
Ext.ux.DatePickerPlus (Multimonth,Multiselect,...)
Ext.ux.menu.StoreMenu - Ajax Store as menu-item config
Extended Window - Aero Shadows, nested grayscaled modal windows
Ext.MessageBox.promptCombo/promptRadio/promptCheckbox
Ext.ux.plugin.triggerfieldTooltip (for Comboboxes, Datefields...)
Ext.util.MD5
Ext.util.Utf8 (encode/decode)
Ext.util.base64 (encode/decode)
Using:
ExtJS 3.4.1.1/4.2
XPsp3/W7sp1
IE8/9/10
FF 20
Chrome 26
-
6 Jul 2008 10:42 PM #2
bump
Extensions:
Ext.ux.DatePickerPlus (Multimonth,Multiselect,...)
Ext.ux.menu.StoreMenu - Ajax Store as menu-item config
Extended Window - Aero Shadows, nested grayscaled modal windows
Ext.MessageBox.promptCombo/promptRadio/promptCheckbox
Ext.ux.plugin.triggerfieldTooltip (for Comboboxes, Datefields...)
Ext.util.MD5
Ext.util.Utf8 (encode/decode)
Ext.util.base64 (encode/decode)
Using:
ExtJS 3.4.1.1/4.2
XPsp3/W7sp1
IE8/9/10
FF 20
Chrome 26
-
7 Jul 2008 11:24 AM #3
I don't think this will ever work. There are various conflicts it can/will cause. The only recommendation I can make is to create sub menus as expected.
-
8 Jul 2008 1:55 AM #4
Since this is not a bug in Ext, I've moved it to Help.


Reply With Quote