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

This commit is contained in:
kborchers 2011-07-13 18:19:02 -05:00 committed by Jörn Zaefferer
parent 2803417dc4
commit f41d2378f9

View File

@ -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();