aboutsummaryrefslogtreecommitdiffstats
path: root/ui/widgets/resizable.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/widgets/resizable.js')
-rw-r--r--ui/widgets/resizable.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/ui/widgets/resizable.js b/ui/widgets/resizable.js
index d1abbd539..3f1f19833 100644
--- a/ui/widgets/resizable.js
+++ b/ui/widgets/resizable.js
@@ -533,15 +533,18 @@ $.widget( "ui.resizable", $.ui.mouse, {
if ( this.position.left !== this.prevPosition.left ) {
props.left = this.position.left + "px";
}
+
+ this.helper.css( props );
+
if ( this.size.width !== this.prevSize.width ) {
props.width = this.size.width + "px";
+ this.helper.width( props.width );
}
if ( this.size.height !== this.prevSize.height ) {
props.height = this.size.height + "px";
+ this.helper.height( props.height );
}
- this.helper.css( props );
-
return props;
},
@@ -1048,7 +1051,7 @@ $.ui.plugin.add( "resizable", "alsoResize", {
$( o.alsoResize ).each( function() {
var el = $( this );
el.data( "ui-resizable-alsoresize", {
- width: parseFloat( el.width() ), height: parseFloat( el.height() ),
+ width: parseFloat( el.css( "width" ) ), height: parseFloat( el.css( "height" ) ),
left: parseFloat( el.css( "left" ) ), top: parseFloat( el.css( "top" ) )
} );
} );