Skip to content

Commit 89fe04a

Browse files
fbaetascottgonzalez
authored andcommitted
Resizable: Fix top jump with rotated element
Fix top jump when resizing a rotated element (90°) using north handle and exceeding the minmal height (default 10px). Bug was found using a resizable-rotation-patch: https://github.com/unlocomqx/jQuery-ui-resizable-rotation-patch Closes jquerygh-1687
1 parent cde7a79 commit 89fe04a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/widgets/resizable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ $.widget( "ui.resizable", $.ui.mouse, {
582582
isminw = this._isNumber( data.width ) && o.minWidth && ( o.minWidth > data.width ),
583583
isminh = this._isNumber( data.height ) && o.minHeight && ( o.minHeight > data.height ),
584584
dw = this.originalPosition.left + this.originalSize.width,
585-
dh = this.position.top + this.size.height,
585+
dh = this.originalPosition.top + this.originalSize.height,
586586
cw = /sw|nw|w/.test( a ), ch = /nw|ne|n/.test( a );
587587
if ( isminw ) {
588588
data.width = o.minWidth;

0 commit comments

Comments
 (0)