mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Fixed $(this).data('resizable') access to wrapped elements
This commit is contained in:
parent
59645bd754
commit
50e2688fcd
@ -81,6 +81,9 @@ $.widget("ui.resizable", $.extend($.ui.mouse, {
|
|||||||
|
|
||||||
var oel = this.element; this.element = this.element.parent();
|
var oel = this.element; this.element = this.element.parent();
|
||||||
|
|
||||||
|
// store instance on wrapper
|
||||||
|
this.element.data('resizable', this);
|
||||||
|
|
||||||
//Move margins to the wrapper
|
//Move margins to the wrapper
|
||||||
this.element.css({ marginLeft: oel.css("marginLeft"), marginTop: oel.css("marginTop"),
|
this.element.css({ marginLeft: oel.css("marginLeft"), marginTop: oel.css("marginTop"),
|
||||||
marginRight: oel.css("marginRight"), marginBottom: oel.css("marginBottom")
|
marginRight: oel.css("marginRight"), marginBottom: oel.css("marginBottom")
|
||||||
|
Loading…
Reference in New Issue
Block a user