r2162 - trunk/ui

r2162 - trunk/ui


Author: rdworth
Date: Mon Mar 2 02:11:38 2009
New Revision: 2162
Modified:
trunk/ui/ui.resizable.js
Log:
Fixed #4127 - Resizable: displacement of element (in case of constraint
resize area)
props raziel057
Modified: trunk/ui/ui.resizable.js
==============================================================================
--- trunk/ui/ui.resizable.js    (original)
+++ trunk/ui/ui.resizable.js    Mon Mar 2 02:11:38 2009
@@ -690,6 +690,9 @@
            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 );