Merge pull request #234 from carsonmcdonald/issue6948

Resizable: Skip autohide hover action when resizable is disabled. Fix #69
This commit is contained in:
Scott González 2011-05-10 07:52:28 -07:00
commit 1a974109ef

View File

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