diff options
author | kborchers <kris.borchers@gmail.com> | 2011-07-13 18:19:02 -0500 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2011-07-14 11:08:28 -0400 |
commit | f41d2378f95bc88165833487a923f90061d3f138 (patch) | |
tree | a1464247032c22932451e5cfaf0ae8cec709c047 /ui/jquery.ui.menu.js | |
parent | 2803417dc44c6147cee14f46ba0ccfa29218a257 (diff) | |
download | jquery-ui-f41d2378f95bc88165833487a923f90061d3f138.tar.gz jquery-ui-f41d2378f95bc88165833487a923f90061d3f138.zip |
Menu: Check if submenu is already open and if so, don't call open again. Fixes Firefox bug where a mouseover of an icon adjusted the position of a submenu by a half pixel
Diffstat (limited to 'ui/jquery.ui.menu.js')
-rw-r--r-- | ui/jquery.ui.menu.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/jquery.ui.menu.js b/ui/jquery.ui.menu.js index 5f9de6134..83ff1b949 100644 --- a/ui/jquery.ui.menu.js +++ b/ui/jquery.ui.menu.js @@ -301,6 +301,10 @@ $.widget( "ui.menu", { _startOpening: function( submenu ) { clearTimeout( this.timer ); + + //Don't open if already open fixes a Firefox bug that caused a .5 pixel shift in the submenu position when mousing over the carat icon + if ( submenu.attr( "aria-hidden" ) !== "true" ) return; + var self = this; self.timer = setTimeout( function() { self._close(); |