diff options
author | Kris Borchers <kris.borchers@gmail.com> | 2013-10-15 21:40:49 -0500 |
---|---|---|
committer | Kris Borchers <kris.borchers@gmail.com> | 2013-10-18 22:12:46 -0500 |
commit | 14065dc23bb453b6c30138f225c9db728dd7e455 (patch) | |
tree | 5f4e9953253a369e43125b6589d10c268f36be57 /ui | |
parent | 7b9c810b9ac450d826b6fa0c3d35377178b7e3b3 (diff) | |
download | jquery-ui-14065dc23bb453b6c30138f225c9db728dd7e455.tar.gz jquery-ui-14065dc23bb453b6c30138f225c9db728dd7e455.zip |
Resizable: Store size based on calculated helper size to prevent 1 pixel shifts. Fixes #9547 - Resizable: off-by-one pixel dimensions with helper and grid
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.resizable.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.resizable.js b/ui/jquery.ui.resizable.js index aab93b57f..f683e6b65 100644 --- a/ui/jquery.ui.resizable.js +++ b/ui/jquery.ui.resizable.js @@ -316,7 +316,7 @@ $.widget("ui.resizable", $.ui.mouse, { //Store needed variables this.offset = this.helper.offset(); this.position = { left: curleft, top: curtop }; - this.size = this._helper ? { width: el.outerWidth(), height: el.outerHeight() } : { width: el.width(), height: el.height() }; + this.size = this._helper ? { width: this.helper.width(), height: this.helper.height() } : { width: el.width(), height: el.height() }; this.originalSize = this._helper ? { width: el.outerWidth(), height: el.outerHeight() } : { width: el.width(), height: el.height() }; this.originalPosition = { left: curleft, top: curtop }; this.sizeDiff = { width: el.outerWidth() - el.width(), height: el.outerHeight() - el.height() }; |