myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcoo...@apache.org
Subject svn commit: r633556 - /myfaces/trinidad/branches/1.2.6.1-branch/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/Window.js
Date Tue, 04 Mar 2008 17:29:50 GMT
Author: mcooper
Date: Tue Mar  4 09:29:45 2008
New Revision: 633556

URL: http://svn.apache.org/viewvc?rev=633556&view=rev
Log:
TRINIDAD-986
Thanks to Gary van Matre for his patch.

Modified:
    myfaces/trinidad/branches/1.2.6.1-branch/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/Window.js

Modified: myfaces/trinidad/branches/1.2.6.1-branch/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/Window.js
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/1.2.6.1-branch/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/Window.js?rev=633556&r1=633555&r2=633556&view=diff
==============================================================================
--- myfaces/trinidad/branches/1.2.6.1-branch/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/Window.js
(original)
+++ myfaces/trinidad/branches/1.2.6.1-branch/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/Window.js
Tue Mar  4 09:29:45 2008
@@ -589,6 +589,15 @@
                      : _getBodyWidth(body, body.offsetWidth, body.offsetLeft);
     var newHeight = 0;
 
+    // if the height was not explicitly set, change to auto forcing
+    // recalculation of  the offsetHeight.  FireFox doesn't always detect
+    // that a PPR has changed the content size.
+    var bodyStyle = body.style;
+    if (!bodyStyle.height || bodyStyle.height.length == 0)
+    {
+      bodyStyle.height = "auto";
+    }
+
     if (isStandard)
     {
       newHeight = body.offsetHeight + (window.outerHeight - window.innerHeight);



Mime
View raw message