From: kborchers Date: Wed, 13 Jul 2011 23:19:02 +0000 (-0500) Subject: Menu: Check if submenu is already open and if so, don't call open again. Fixes Firefo... X-Git-Tag: 1.9m6~98^2~4 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f41d2378f95bc88165833487a923f90061d3f138;p=jquery-ui.git 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 --- 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();