Fixed #4127 - Resizable: displacement of element (in case of constraint resize area)

props raziel057
This commit is contained in:
Richard Worth
2009-03-02 10:11:38 +00:00
parent 58afe89127
commit b38b6a7546

View File

@@ -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 );