[CLOSED] menu mouse out issue

  1. #1

    [CLOSED] menu mouse out issue

    What i have is a menu with a component menu item which holds a grid. I'm trying to have it so that on mouse out, the mouse out event handler handles some biz logic and hides the menu. My problem is that mouseout fires when I mouse over the grid. This is not my desired affect. I do not want the mouseout event to fire until I've moved outside the "area" which is occupied by the menu populated by the grid.

    I've tried mouse out on the grid, but that fires if I mouse over a different column header (?shrug?).
  2. #2

    RE: [CLOSED] menu mouse out issue

    Hi,

    It is not so easy (atleast I didn't find acceptable solution)
    Try the following

    1. Define js function on the page
    function hideMenu(e, t){
                if(!e.within(this.ul)){
                    this.hide();
                }
            }
    2. Add Listeners to the menu
    <MouseOver Handler="Ext.getBody().on('mouseover', hideMenu, this, {buffer:250});" />
                <Hide Handler="Ext.getBody().un('mouseover', hideMenu, this);" />
  3. #3

    RE: [CLOSED] menu mouse out issue

    That seems to work. I will test it further to make sure. Thanks :)
  4. #4

    RE: [CLOSED] menu mouse out issue

    this actually ended up not working for us because mouse out fired repeatedly as I left the menu even though it didn't hide the menu. We've tabled this for now.

Similar Threads

  1. [CLOSED] Button Menu with TextFields, Mouse events interacting
    By FVNoel in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: May 06, 2013, 9:28 AM
  2. Replies: 12
    Last Post: Dec 22, 2011, 10:33 AM
  3. Z-Index issue with Menu in ViewPort
    By huzzy143 in forum 1.x Help
    Replies: 3
    Last Post: Nov 14, 2011, 11:14 AM
  4. Menu Font Color on Mouse Over
    By paulselva_26 in forum 1.x Help
    Replies: 5
    Last Post: Jan 05, 2011, 6:19 AM
  5. [CLOSED] ASP Menu and ext:Panel issue
    By egodoy in forum 1.x Help
    Replies: 2
    Last Post: Dec 12, 2008, 1:53 PM

Posting Permissions