Skip to content

Commit

Permalink
Resizable: Skip autohide hover action when resizable is disabled. Fix…
Browse files Browse the repository at this point in the history
… #6948 - Resizable autoHide Doesn't Work With Resizable's disable

(cherry picked from commit 0e2bc5e)
  • Loading branch information
carsonmcdonald authored and scottgonzalez committed May 10, 2011
1 parent 7eda94a commit 38af07e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ui/jquery.ui.resizable.js
Expand Up @@ -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();
Expand Down

0 comments on commit 38af07e

Please sign in to comment.