diff options
author | Francesc Baeta <francesc.baeta@gmail.com> | 2016-03-24 16:28:15 +0100 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2016-03-30 09:24:03 -0400 |
commit | 89fe04af3d19b80147b93beca38986ca12952850 (patch) | |
tree | 03352a3f529eaa6fb1a629eeb7717fc2b5e5b5d6 /ui | |
parent | cde7a79b8ffe7726e726c971ce31e929c1d1ab83 (diff) | |
download | jquery-ui-89fe04af3d19b80147b93beca38986ca12952850.tar.gz jquery-ui-89fe04af3d19b80147b93beca38986ca12952850.zip |
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 gh-1687
Diffstat (limited to 'ui')
-rw-r--r-- | ui/widgets/resizable.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/widgets/resizable.js b/ui/widgets/resizable.js index 88ad41180..e516c547f 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; |