Author: nbelaevski
Date: 2009-03-31 10:23:02 -0400 (Tue, 31 Mar 2009)
New Revision: 13316
Modified:
trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js
Log:
https://jira.jboss.org/jira/browse/RF-6662
https://jira.jboss.org/jira/browse/RF-6437
Modified:
trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js
===================================================================
---
trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js 2009-03-31
12:26:11 UTC (rev 13315)
+++
trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js 2009-03-31
14:23:02 UTC (rev 13316)
@@ -146,6 +146,7 @@
var eCdiv = $(this.cdiv);
eCdiv.style.position = "absolute";
+ eCdiv.parentNode.style.position = "absolute";
eCdiv.mpUseExpr = true;
}
@@ -629,7 +630,6 @@
eCursorDiv.style.setExpression("left", le);
eCursorDiv.style.setExpression("top", te);
-
var leftExpr = "(this.mpLeft || 0) +
-Position.cumulativeOffset(this.parentNode)[0] + getSizeElement().scrollLeft +
\"px\"";
var topExpr = "(this.mpTop || 0) +
-Position.cumulativeOffset(this.parentNode)[1] + getSizeElement().scrollTop +
\"px\"";
@@ -745,7 +745,7 @@
var eDiv = $(this.div);
var eCdiv = $(this.cdiv);
- if (eDiv.style.removeExpression) {
+ if (eDiv.style.position == "absolute") {
eDiv.style.removeExpression("width");
eDiv.style.removeExpression("height");