aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorChristian Klammer <christian314159@gmail.com>2013-05-16 21:26:13 +1000
committerMike Sherov <mike.sherov@gmail.com>2013-05-29 08:18:58 -0400
commit6df5c1a4ae738e591694e0fe2fa3bbb8b05f6b0a (patch)
tree96eb523fc20df3fcad7c740c5ed9a4714a708e62 /ui
parent9e00e00f3b54770faa0291d6ee6fc1dcbad028cb (diff)
downloadjquery-ui-6df5c1a4ae738e591694e0fe2fa3bbb8b05f6b0a.tar.gz
jquery-ui-6df5c1a4ae738e591694e0fe2fa3bbb8b05f6b0a.zip
Resizable: Fixed sign error on offset calculation. Fixes #9307 - Resizable: Erratic behavior of contained elements within scrollable grandparents
Diffstat (limited to 'ui')
-rw-r--r--ui/jquery.ui.resizable.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/jquery.ui.resizable.js b/ui/jquery.ui.resizable.js
index c84323e8a..aab93b57f 100644
--- a/ui/jquery.ui.resizable.js
+++ b/ui/jquery.ui.resizable.js
@@ -797,8 +797,8 @@ $.ui.plugin.add("resizable", "containment", {
isParent = that.containerElement.get(0) === that.element.parent().get(0);
isOffsetRelative = /relative|absolute/.test(that.containerElement.css("position"));
- if(isParent && isOffsetRelative) {
- woset -= that.parentData.left;
+ if ( isParent && isOffsetRelative ) {
+ woset -= Math.abs( that.parentData.left );
}
if (woset + that.size.width >= that.parentData.width) {