From: Carson McDonald Date: Mon, 9 May 2011 15:00:12 +0000 (-0400) Subject: Resizable: Skip autohide hover action when resizable is disabled. Fix #6948 - Resizab... X-Git-Tag: 1.8.13~9 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=38af07ec4e916bc5fe1268b9878a21801368a78d;p=jquery-ui.git Resizable: Skip autohide hover action when resizable is disabled. Fix #6948 - Resizable autoHide Doesn't Work With Resizable's disable (cherry picked from commit 0e2bc5efe217681c006ae7a16be21520e6563da6) --- diff --git a/ui/jquery.ui.resizable.js b/ui/jquery.ui.resizable.js index 1e1706a9d..e0579ef84 100644 --- a/ui/jquery.ui.resizable.js +++ b/ui/jquery.ui.resizable.js @@ -176,10 +176,12 @@ $.widget("ui.resizable", $.ui.mouse, { $(this.element) .addClass("ui-resizable-autohide") .hover(function() { + if (o.disabled) return; $(this).removeClass("ui-resizable-autohide"); self._handles.show(); }, function(){ + if (o.disabled) return; if (!self.resizing) { $(this).addClass("ui-resizable-autohide"); self._handles.hide();