]> source.dussan.org Git - jquery-ui.git/commitdiff
Resizable: Skip autohide hover action when resizable is disabled. Fix #6948 - Resizab...
authorCarson McDonald <carson@ioncannon.net>
Mon, 9 May 2011 15:00:12 +0000 (11:00 -0400)
committerScott González <scott.gonzalez@gmail.com>
Tue, 10 May 2011 14:53:26 +0000 (10:53 -0400)
(cherry picked from commit 0e2bc5efe217681c006ae7a16be21520e6563da6)

ui/jquery.ui.resizable.js

index 1e1706a9dfd6b8a822247d1b4cf36b99a3b53826..e0579ef849661e53f2fb7846b69ba89b276ba350 100644 (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();