Fixed $(this).data('resizable') access to wrapped elements

This commit is contained in:
Eduardo Lundgren 2008-06-06 18:11:45 +00:00
parent 59645bd754
commit 50e2688fcd

View File

@ -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")