From 52b468feb2c6f31e93bce4d0389549ce79bb147b Mon Sep 17 00:00:00 2001 From: gtbu <30436307+gtbu@users.noreply.github.com> Date: Tue, 24 Jan 2023 12:37:39 +0100 Subject: [PATCH] Update to master-version Update to https://github.com/jquery/jquery-ui/tree/main/ui/widgets (Resizable: Fix resizing of elems with box-sizing: border-box) --- include/thirdparty/jquery_ui/resizable.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/include/thirdparty/jquery_ui/resizable.js b/include/thirdparty/jquery_ui/resizable.js index d1abbd5..3f1f198 100644 --- a/include/thirdparty/jquery_ui/resizable.js +++ b/include/thirdparty/jquery_ui/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" ) ) } ); } );