]> source.dussan.org Git - jquery-ui.git/commitdiff
Resizable fix for this.ui() - Now returns originalElement, element, helper, position...
authorEduardo Lundgren <eduardolundgren@gmail.com>
Tue, 10 Jun 2008 17:46:33 +0000 (17:46 +0000)
committerEduardo Lundgren <eduardolundgren@gmail.com>
Tue, 10 Jun 2008 17:46:33 +0000 (17:46 +0000)
ui/ui.resizable.js

index d896548b3836bf177c70d5447bdb21f93e3a7657..93f834511aac254a541be09e88727a39965aee9d 100644 (file)
@@ -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) {