Skip to content
Permalink
Browse files

Resizable fix for this.ui() - Now returns originalElement, element, h…

…elper, position, size, options, originalSize, originalPosition
  • Loading branch information
eduardolundgren committed Jun 10, 2008
1 parent c3a593b commit 14d3153e65f0f20ec6f34e91552871b5ee1904bd
Showing with 10 additions and 2 deletions.
  1. +10 −2 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) {

0 comments on commit 14d3153

Please sign in to comment.
You can’t perform that action at this time.