mirror of
https://github.com/gtbu/Typesetter-5.3-p8.git
synced 2024-11-21 21:59:12 +01:00
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)
This commit is contained in:
parent
eeb0e287dc
commit
52b468feb2
1 changed files with 6 additions and 3 deletions
9
include/thirdparty/jquery_ui/resizable.js
vendored
9
include/thirdparty/jquery_ui/resizable.js
vendored
|
@ -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" ) )
|
||||
} );
|
||||
} );
|
||||
|
|
Loading…
Reference in a new issue