From f1d0d9c0603e929909f6ccf160189882c25043c7 Mon Sep 17 00:00:00 2001 From: fbaeta Date: Thu, 24 Mar 2016 16:28:15 +0100 Subject: [PATCH] Fix top jump MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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/blob/master/resizable-rotation.patch.js) --- ui/widgets/resizable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/widgets/resizable.js b/ui/widgets/resizable.js index 88ad4118064..e516c547ff7 100644 --- a/ui/widgets/resizable.js +++ b/ui/widgets/resizable.js @@ -582,7 +582,7 @@ $.widget( "ui.resizable", $.ui.mouse, { isminw = this._isNumber( data.width ) && o.minWidth && ( o.minWidth > data.width ), isminh = this._isNumber( data.height ) && o.minHeight && ( o.minHeight > data.height ), dw = this.originalPosition.left + this.originalSize.width, - dh = this.position.top + this.size.height, + dh = this.originalPosition.top + this.originalSize.height, cw = /sw|nw|w/.test( a ), ch = /nw|ne|n/.test( a ); if ( isminw ) { data.width = o.minWidth;