r2373 - merged to /branches/1.6, trunk r1732 - Resizable: containment - only scales on x-axis - F...

r2373 - merged to /branches/1.6, trunk r1732 - Resizable: containment - only scales on x-axis - F...


Author: scott.gonzalez
Date: Tue Mar 24 17:15:36 2009
New Revision: 2373
Modified:
branches/1.6/ui/ui.resizable.js
Log:
merged to /branches/1.6, trunk r1732 - Resizable: containment - only scales
on x-axis - Fixed #3733
Modified: branches/1.6/ui/ui.resizable.js
==============================================================================
--- branches/1.6/ui/ui.resizable.js    (original)
+++ branches/1.6/ui/ui.resizable.js    Tue Mar 24 17:15:36 2009
@@ -696,8 +696,7 @@
                ps = self.containerSize, co = self.containerOffset, cs = self.size, cp
= self.position,
                pRatio = o._aspectRatio || event.shiftKey, cop = { top:0, left:0 }, ce
= self.containerElement;
-        if (ce[0] != document && (/static/).test(ce.css('position')))
-            cop = self.containerPosition;
+        if (ce[0] != document && (/static/).test(ce.css('position'))) cop = co;
        if (cp.left < (o.helper ? co.left : 0)) {
            self.size.width = self.size.width + (o.helper ? (self.position.left -
co.left) : (self.position.left - cop.left));