Author: sergeyhalipov
Date: 2008-01-08 15:37:46 -0500 (Tue, 08 Jan 2008)
New Revision: 5204
Modified:
trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js
Log:
http://jira.jboss.com/jira/browse/RF-1654
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 2008-01-08
20:23:59 UTC (rev 5203)
+++
trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js 2008-01-08
20:37:46 UTC (rev 5204)
@@ -705,13 +705,7 @@
var eContentDiv = $(this.contentDiv);
- // Avoid currentStyle bug in opera
- if (RichFaces.navigatorType() != RichFaces.OPERA)
- {
- newSize = Richfaces.getComputedStyleSize(eContentDiv, "width");
- }
- else
- newSize = parseInt(eContentDiv.style.width.replace("px", ""),
10);
+ newSize = Richfaces.getComputedStyleSize(eContentDiv, "width");
var oldSize = newSize;
newSize += diff.deltaWidth || 0;
@@ -754,13 +748,7 @@
}
}
- // Avoid currentStyle bug in opera
- if (RichFaces.navigatorType() != RichFaces.OPERA)
- {
- newSize = Richfaces.getComputedStyleSize(eContentDiv, "height");
- }
- else
- newSize = parseInt(eContentDiv.style.height.replace("px", ""),
10);
+ newSize = Richfaces.getComputedStyleSize(eContentDiv, "height");
var oldSize = newSize;
newSize += diff.deltaHeight || 0;