diff options
author | Richard Worth <rdworth@gmail.com> | 2009-03-02 10:11:38 +0000 |
---|---|---|
committer | Richard Worth <rdworth@gmail.com> | 2009-03-02 10:11:38 +0000 |
commit | b38b6a75460fcdcc4d95a6096af1bb13d3dce3e9 (patch) | |
tree | 971e1e49131f2f853f118d4e22a38104be392d50 /ui/ui.resizable.js | |
parent | 58afe89127d168dbb2b852d0da6efa0a36837a77 (diff) | |
download | jquery-ui-b38b6a75460fcdcc4d95a6096af1bb13d3dce3e9.tar.gz jquery-ui-b38b6a75460fcdcc4d95a6096af1bb13d3dce3e9.zip |
Fixed #4127 - Resizable: displacement of element (in case of constraint resize area)
props raziel057
Diffstat (limited to 'ui/ui.resizable.js')
-rw-r--r-- | ui/ui.resizable.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/ui.resizable.js b/ui/ui.resizable.js index 85c998e56..ec56276d7 100644 --- a/ui/ui.resizable.js +++ b/ui/ui.resizable.js @@ -690,6 +690,9 @@ $.ui.plugin.add("resizable", "containment", { self.position.top = self._helper ? co.top : 0; } + self.offset.left = self.parentData.left+self.position.left; + self.offset.top = self.parentData.top+self.position.top; + var woset = Math.abs( (self._helper ? self.offset.left - cop.left : (self.offset.left - cop.left)) + self.sizeDiff.width ), hoset = Math.abs( (self._helper ? self.offset.top - cop.top : (self.offset.top - co.top)) + self.sizeDiff.height ); |