From: Eduardo Lundgren Date: Fri, 6 Jun 2008 18:11:45 +0000 (+0000) Subject: Fixed $(this).data('resizable') access to wrapped elements X-Git-Tag: 1.5.1~181 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=50e2688fcd70647530adbd5b2a4d42ad62e5e079;p=jquery-ui.git Fixed $(this).data('resizable') access to wrapped elements --- 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")