View Full Version : Menu gets closed/hidden

16 Aug 2011, 9:51 PM
I have a button with a menu. The single item in that menu is a panel. The panel has a toolbar with a cycle button in it.

Clicking on the cycle button's menu would hide the parent menu which I was trying to avoid. Got around that by setting menu.allowOtherMenus = true.

What I haven't been able to do is to prevent the parent menu from closing when I click on a button in the cycle's menu. Tried swallowing the event 'mousedown' on the cycle menu's el. Tried e.stopEvent() on the cycle menu's el as well as on the menuItem's els. No luck.


17 Aug 2011, 11:38 AM
You could try setting hideOnClick: false for the menu item with the cycle button?


17 Aug 2011, 12:07 PM
I'll give that a shot. I hadn't tried it thinking that it would leave my cycle menu open after the click forcing the user to click off of it to close it, but I could be wrong.

I guess worst case I take my 'menu panel' and remove it from the button's menu's items, drop the menu from the button altogether, and just float > showAt > handle-click-outside-panel-to-hide. Hopefully doing that would work if the hideOnClick doesn't solve it for me.

Thx for the reply, BTW!