Skip to content

Commit

Permalink
Resizable fix for this.ui() - Now returns originalElement, element, h…
Browse files Browse the repository at this point in the history
…elper, position, size, options, originalSize, originalPosition
  • Loading branch information
eduardolundgren committed Jun 10, 2008
1 parent c3a593b commit 14d3153
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions ui/ui.resizable.js
Expand Up @@ -20,6 +20,8 @@ $.widget("ui.resizable", $.extend($.ui.mouse, {


var elpos = this.element.css('position'); var elpos = this.element.css('position');


this.originalElement = this.element;

// simulate .ui-resizable { position: relative; } // simulate .ui-resizable { position: relative; }
this.element.addClass("ui-resizable").css({ position: /static/.test(elpos) ? 'relative' : elpos }); this.element.addClass("ui-resizable").css({ position: /static/.test(elpos) ? 'relative' : elpos });


Expand Down Expand Up @@ -216,8 +218,14 @@ $.widget("ui.resizable", $.extend($.ui.mouse, {
plugins: {}, plugins: {},
ui: function() { ui: function() {
return { return {
axis: this.options.axis, originalElement: this.originalElement,
options: this.options 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) { propagate: function(n,e) {
Expand Down

0 comments on commit 14d3153

Please sign in to comment.