-
12 Feb 2008 11:05 PM #1
Calculating Menu region
Calculating Menu region
Hi All,
I am trying to implement menu hide functionality on mouseout. I am using "mouseout" event to do the same. I am hiding menu by using -
The problem with this code is that whenever I move the mouse slowly outside menu boundaries, the menu doesnCode://m is menu if (!m.activeItem && !m.getEl().getRegion().contains(e.getPoint())) { m.hide(true); }
-
23 Feb 2008 8:06 AM #2
Can you remove the check to see if the region contains the point? Sounds like it might solve the issue.
-
23 Feb 2008 5:53 PM #3
Thanks for your response
If I remove the check the menu vanished even if I move mouse from one item to another. Similarly If I move mouse into the submenu the menu vanished.
The root cause which I can see is that menu region is including shadow width . I have made shadow parameter false. Seems like a small bug in getRegion function of menu.
Cheers !
Jiten


Reply With Quote