Skip to content

Commit 5101f17

Browse files
committed
Resizable: Fix issue with border-box
1 parent efe3b22 commit 5101f17

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

ui/widgets/resizable.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -533,15 +533,18 @@ $.widget( "ui.resizable", $.ui.mouse, {
533533
if ( this.position.left !== this.prevPosition.left ) {
534534
props.left = this.position.left + "px";
535535
}
536+
537+
this.helper.css( props );
538+
536539
if ( this.size.width !== this.prevSize.width ) {
537540
props.width = this.size.width + "px";
541+
this.helper.width(this.size.width);
538542
}
539543
if ( this.size.height !== this.prevSize.height ) {
540544
props.height = this.size.height + "px";
545+
this.helper.height(this.size.height);
541546
}
542547

543-
this.helper.css( props );
544-
545548
return props;
546549
},
547550

@@ -1048,7 +1051,7 @@ $.ui.plugin.add( "resizable", "alsoResize", {
10481051
$( o.alsoResize ).each( function() {
10491052
var el = $( this );
10501053
el.data( "ui-resizable-alsoresize", {
1051-
width: parseFloat( el.width() ), height: parseFloat( el.height() ),
1054+
width: parseFloat( el.css( "width" ) ), height: parseFloat(el.css( "height ") ),
10521055
left: parseFloat( el.css( "left" ) ), top: parseFloat( el.css( "top" ) )
10531056
} );
10541057
} );

0 commit comments

Comments
 (0)