[richfaces-svn-commits] JBoss Rich Faces SVN: r366 - trunk/richfaces/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts.
richfaces-svn-commits at lists.jboss.org
richfaces-svn-commits at lists.jboss.org
Wed Apr 11 10:58:18 EDT 2007
Author: sergeyhalipov
Date: 2007-04-11 10:58:17 -0400 (Wed, 11 Apr 2007)
New Revision: 366
Modified:
trunk/richfaces/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js
Log:
Fix horizontal resize in Opera.
Modified: trunk/richfaces/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js
===================================================================
--- trunk/richfaces/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js 2007-04-11 14:48:17 UTC (rev 365)
+++ trunk/richfaces/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js 2007-04-11 14:58:17 UTC (rev 366)
@@ -438,7 +438,12 @@
var winSize = Richfaces.getWindowSize();
var vetoeChange = false;
- var newSize = Richfaces.getComputedStyleSize(this.contentDiv, "width");
+ var newSize;
+ // Avoid currentStyle bug in opera
+ if (RichFaces.navigatorType() != "OPERA")
+ newSize = Richfaces.getComputedStyleSize(this.contentDiv, "width");
+ else
+ newSize = parseInt(this.contentDiv.style.width.replace("px", ""), 10);
var oldSize = newSize;
newSize += diff.deltaWidth || 0;
More information about the richfaces-svn-commits
mailing list