PDA

View Full Version : Menu stays open when losing of focus



hello
7 Dec 2009, 12:15 AM
is there a way to make a menu staying open after losing focus(eg. by clicking some where else)?
thanks

Condor
7 Dec 2009, 12:26 AM
Unfortunately there is no config option for this and the code that hides the menu is private within Ext.MenuMgr, so you also can't override it.

The only thing you can do is to unregister the menu from the MenuMgr, e.g.

var menu = new Ext.menu.Menu(...);
Ext.menu.MenuMgr.unregister(menu);

But this will also disable all the other stuff that MenuMgr does:
1. Automatic z-index assignment for submenus.
2. Hide other menus when allowOtherMenus is set.
3. Unchecking other radio menuitems in a group.