diff --git a/ui/resizable.js b/ui/resizable.js index c167508b397..1d0aada976a 100644 --- a/ui/resizable.js +++ b/ui/resizable.js @@ -487,15 +487,18 @@ $.widget("ui.resizable", $.ui.mouse, { if ( this.position.left !== this.prevPosition.left ) { props.left = this.position.left + "px"; } - if ( this.size.width !== this.prevSize.width ) { - props.width = this.size.width + "px"; - } - if ( this.size.height !== this.prevSize.height ) { - props.height = this.size.height + "px"; - } this.helper.css( props ); + if (this.size.width !== this.prevSize.width) { + props.width = this.size.width + "px"; + this.helper.width(this.size.width); + } + if (this.size.height !== this.prevSize.height) { + props.height = this.size.height + "px"; + this.helper.height(this.size.height); + } + return props; }, @@ -994,8 +997,8 @@ $.ui.plugin.add("resizable", "alsoResize", { $(exp).each(function() { var el = $(this); el.data("ui-resizable-alsoresize", { - width: parseInt(el.width(), 10), height: parseInt(el.height(), 10), - left: parseInt(el.css("left"), 10), top: parseInt(el.css("top"), 10) + width: parseInt(el.css("width"), 10), height: parseInt(el.css("height"), 10), + left: parseInt(el.css("left"), 10), top: parseInt(el.css("top"), 10) }); }); };