Skip to content
Permalink
Browse files

Fixed #2988

  • Loading branch information
eduardolundgren committed Jun 26, 2008
1 parent bb00461 commit c5f27fe5eb0791f31368663062cb5e3b490fdf90
Showing with 4 additions and 3 deletions.
  1. +4 −3 ui/ui.resizable.js
@@ -536,10 +536,11 @@ $.ui.plugin.add("resizable", "containment", {
self.containerPosition = { left: 0, top: 0 };

self.parentData = {
element: $(document), left: 0, top: 0, width: $(document).width(),
height: $(document).height() || document.body.parentNode.scrollHeight
element: $(document), left: 0, top: 0,
width: $(document).width(), height: $(document).height() || document.body.parentNode.scrollHeight
};
}


// i'm a node, so compute top, left, right, bottom
else{
@@ -561,7 +562,7 @@ $.ui.plugin.add("resizable", "containment", {
ps = self.containerSize, co = self.containerOffset, cs = self.size, cp = self.position,
pRatio = o._aspectRatio || e.shiftKey, cop = { top:0, left:0 }, ce = self.containerElement;

if (/static/.test(ce.css('position')))
if (ce[0] != document && /static/.test(ce.css('position')))
cop = self.containerPosition;

if (cp.left < (o.proxy ? co.left : cop.left)) {

0 comments on commit c5f27fe

Please sign in to comment.
You can’t perform that action at this time.