mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Resizable fix for this.ui() - Now returns originalElement, element, helper, position, size, options, originalSize, originalPosition
This commit is contained in:
parent
c3a593bde8
commit
14d3153e65
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user