1. #1
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    4,994
    Answers
    381
    Vote Rating
    183
    slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold

      0  

    Default Answered: Menu gets closed/hidden

    Answered: Menu gets closed/hidden


    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.

    Thoughts?

  2. You could try setting hideOnClick: false for the menu item with the cycle button?

    stevil

  3. #2
    Ext JS Premium Member stevil's Avatar
    Join Date
    Nov 2007
    Location
    Denver, CO
    Posts
    1,045
    Answers
    15
    Vote Rating
    9
    stevil will become famous soon enough

      0  

    Default


    You could try setting hideOnClick: false for the menu item with the cycle button?

    stevil

  4. #3
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    4,994
    Answers
    381
    Vote Rating
    183
    slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold

      0  

    Default


    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!

Thread Participants: 1