diff options
author | Eduardo Lundgren <eduardolundgren@gmail.com> | 2008-06-10 17:46:33 +0000 |
---|---|---|
committer | Eduardo Lundgren <eduardolundgren@gmail.com> | 2008-06-10 17:46:33 +0000 |
commit | 14d3153e65f0f20ec6f34e91552871b5ee1904bd (patch) | |
tree | 8a2ea4e504703beeefcf71a63ee3145ea3f78cdd | |
parent | c3a593bde81fb95cfb3cfd05dbf3e3231655b7ea (diff) | |
download | jquery-ui-14d3153e65f0f20ec6f34e91552871b5ee1904bd.tar.gz jquery-ui-14d3153e65f0f20ec6f34e91552871b5ee1904bd.zip |
Resizable fix for this.ui() - Now returns originalElement, element, helper, position, size, options, originalSize, originalPosition
-rw-r--r-- | ui/ui.resizable.js | 12 |
1 files 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) { |