From: Eduardo Lundgren Date: Tue, 10 Jun 2008 17:46:33 +0000 (+0000) Subject: Resizable fix for this.ui() - Now returns originalElement, element, helper, position... X-Git-Tag: 1.5.1~103 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=14d3153e65f0f20ec6f34e91552871b5ee1904bd;p=jquery-ui.git Resizable fix for this.ui() - Now returns originalElement, element, helper, position, size, options, originalSize, originalPosition --- diff --git a/ui/ui.resizable.js b/ui/ui.resizable.js index d896548b3..93f834511 100644 --- a/ui/ui.resizable.js +++ b/ui/ui.resizable.js @@ -20,6 +20,8 @@ $.widget("ui.resizable", $.extend($.ui.mouse, { var elpos = this.element.css('position'); + this.originalElement = this.element; + // simulate .ui-resizable { position: relative; } this.element.addClass("ui-resizable").css({ position: /static/.test(elpos) ? 'relative' : elpos }); @@ -216,8 +218,14 @@ $.widget("ui.resizable", $.extend($.ui.mouse, { plugins: {}, ui: function() { return { - axis: this.options.axis, - options: this.options + originalElement: this.originalElement, + element: this.element, + helper: this.helper, + position: this.position, + size: this.size, + options: this.options, + originalSize: this.originalSize, + originalPosition: this.originalPosition }; }, propagate: function(n,e) {