]> source.dussan.org Git - jquery-ui.git/commitdiff
Fixed #3733
authorEduardo Lundgren <eduardolundgren@gmail.com>
Wed, 21 Jan 2009 03:07:58 +0000 (03:07 +0000)
committerEduardo Lundgren <eduardolundgren@gmail.com>
Wed, 21 Jan 2009 03:07:58 +0000 (03:07 +0000)
ui/ui.resizable.js

index 2c7d30fb1fd45adc3dae9a48aa7f3224019cf2f7..13bbff57c3f88222f78926c4300023a3a1556184 100644 (file)
@@ -722,8 +722,7 @@ $.ui.plugin.add("resizable", "containment", {
                                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));