From 50e2688fcd70647530adbd5b2a4d42ad62e5e079 Mon Sep 17 00:00:00 2001 From: Eduardo Lundgren Date: Fri, 6 Jun 2008 18:11:45 +0000 Subject: [PATCH] Fixed $(this).data('resizable') access to wrapped elements --- ui/source/ui.resizable.js | 3 +++ 1 file changed, 3 insertions(+) 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") -- 2.39.5