Skip to content
Permalink
Browse files

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

  • Loading branch information
eduardolundgren committed Jun 6, 2008
1 parent 59645bd commit 50e2688fcd70647530adbd5b2a4d42ad62e5e079
Showing with 3 additions and 0 deletions.
  1. +3 −0 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")

0 comments on commit 50e2688

Please sign in to comment.
You can’t perform that action at this time.