From 14d3153e65f0f20ec6f34e91552871b5ee1904bd Mon Sep 17 00:00:00 2001 From: Eduardo Lundgren Date: Tue, 10 Jun 2008 17:46:33 +0000 Subject: [PATCH] Resizable fix for this.ui() - Now returns originalElement, element, helper, position, size, options, originalSize, originalPosition --- ui/ui.resizable.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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) { -- 2.39.5