aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.resizable.js
diff options
context:
space:
mode:
authorJyoti Deka <dekajp@gmail.com>2013-11-07 09:39:51 -0500
committerMike Sherov <mike.sherov@gmail.com>2013-12-15 12:29:55 -0500
commitc03cb8079c6984fb9286a64d980d367d86b9cd8b (patch)
tree5a970098b8033141fca440e807e0864bc08decdb /ui/jquery.ui.resizable.js
parent38c6cf13829c7d010ca2575ad86526ee57c879ae (diff)
downloadjquery-ui-c03cb8079c6984fb9286a64d980d367d86b9cd8b.tar.gz
jquery-ui-c03cb8079c6984fb9286a64d980d367d86b9cd8b.zip
Resizable: containment now works with non - immediate children
Fixes #7485 Closes gh-1130
Diffstat (limited to 'ui/jquery.ui.resizable.js')
-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 dc14a53a6..a825d68d1 100644
--- a/ui/jquery.ui.resizable.js
+++ b/ui/jquery.ui.resizable.js
@@ -792,8 +792,8 @@ $.ui.plugin.add("resizable", "containment", {
that.offset.left = that.parentData.left+that.position.left;
that.offset.top = that.parentData.top+that.position.top;
- woset = Math.abs( (that._helper ? that.offset.left - cop.left : (that.offset.left - cop.left)) + that.sizeDiff.width );
- hoset = Math.abs( (that._helper ? that.offset.top - cop.top : (that.offset.top - co.top)) + that.sizeDiff.height );
+ woset = Math.abs( ( that._helper ? that.offset.left - cop.left : ( that.offset.left - co.left ) ) + that.sizeDiff.width );
+ hoset = Math.abs( ( that._helper ? that.offset.top - cop.top : ( that.offset.top - co.top ) ) + that.sizeDiff.height );
isParent = that.containerElement.get(0) === that.element.parent().get(0);
isOffsetRelative = /relative|absolute/.test(that.containerElement.css("position"));