diff options
author | Mathias Stenbom <mathias@stenbom.com> | 2012-11-02 09:59:46 +0100 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-11-05 13:16:48 -0500 |
commit | 0bff32a2b1c2273e46dc0f70bc1058ad304ebcc5 (patch) | |
tree | 475c0d845d317d9050437176c9775c9c0a0c0dc9 /ui/jquery.ui.resizable.js | |
parent | 6874f190611009228ea9d6901fcdd6b951c66198 (diff) | |
download | jquery-ui-0bff32a2b1c2273e46dc0f70bc1058ad304ebcc5.tar.gz jquery-ui-0bff32a2b1c2273e46dc0f70bc1058ad304ebcc5.zip |
Resizable: Made handles work with complex markup. Fixes #8756 - Resizable: Complex markup for handles.
Diffstat (limited to 'ui/jquery.ui.resizable.js')
-rw-r--r-- | ui/jquery.ui.resizable.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ui/jquery.ui.resizable.js b/ui/jquery.ui.resizable.js index 13f6c71d0..c2ad28716 100644 --- a/ui/jquery.ui.resizable.js +++ b/ui/jquery.ui.resizable.js @@ -231,14 +231,15 @@ $.widget("ui.resizable", $.ui.mouse, { }, _mouseCapture: function(event) { - var handle = false; + var capture = false; for (var i in this.handles) { - if ($(this.handles[i])[0] == event.target) { - handle = true; + var handle = $(this.handles[i])[0]; + if (handle == event.target || $.contains(handle, event.target)) { + capture = true; } } - return !this.options.disabled && handle; + return !this.options.disabled && capture; }, _mouseStart: function(event) { |