diff options
author | Eduardo Lundgren <eduardolundgren@gmail.com> | 2008-06-06 18:11:45 +0000 |
---|---|---|
committer | Eduardo Lundgren <eduardolundgren@gmail.com> | 2008-06-06 18:11:45 +0000 |
commit | 50e2688fcd70647530adbd5b2a4d42ad62e5e079 (patch) | |
tree | c3e5787a14a78300feeea93600c1303a8857d7dc /ui | |
parent | 59645bd754ed4a4c2120fc2168fb3bcb3165d545 (diff) | |
download | jquery-ui-50e2688fcd70647530adbd5b2a4d42ad62e5e079.tar.gz jquery-ui-50e2688fcd70647530adbd5b2a4d42ad62e5e079.zip |
Fixed $(this).data('resizable') access to wrapped elements
Diffstat (limited to 'ui')
-rw-r--r-- | ui/source/ui.resizable.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/source/ui.resizable.js b/ui/source/ui.resizable.js index ba8c12ea8..29dccb33b 100644 --- a/ui/source/ui.resizable.js +++ b/ui/source/ui.resizable.js @@ -81,6 +81,9 @@ $.widget("ui.resizable", $.extend($.ui.mouse, { var oel = this.element; this.element = this.element.parent(); + // store instance on wrapper + this.element.data('resizable', this); + //Move margins to the wrapper this.element.css({ marginLeft: oel.css("marginLeft"), marginTop: oel.css("marginTop"), marginRight: oel.css("marginRight"), marginBottom: oel.css("marginBottom") |