I have a Menu that contains a TreePanel. The users need to be able to interact with a the TreePanel’s nodes using a context menu. I’m showing the context menu from a function attached to the TreePanel’s contextmenu event.
This works except:
- Without
allowOtherMenus: true, showing the context menu causes the main menu, and therefore the TreePanel, to disappear ; - With
allowOtherMenus: trueon either menu, the context menu doesn’t disappear when the users clicks a blank area of the TreePanel.
I’m looking for a way to have the context menu to work as if the TreePanel were not an item within a menu.
Mockup :

I found this that seems to work on FF3/IE8/Chrome, although it could have side effects that have not shown up yet.
allowOtherMenus: trueprevents the hiding of the main menu by the MenuMgr when the context menu pops up. Hiding the handler to the mouseup event allows for click events to be processed.