aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.resizable.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/ui.resizable.js')
-rw-r--r--ui/ui.resizable.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/ui/ui.resizable.js b/ui/ui.resizable.js
index 8ce8ee979..3bc21cab6 100644
--- a/ui/ui.resizable.js
+++ b/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)) {