Author: xlawrence
Date: Wed Aug 29 15:25:43 2007
New Revision: 18299

URL: https://svndev.jahia.net/websvn/listing.php?sc=3D1&rev=3D18299&repname=
=3Djahia
Log:
commit Khaled's modif on engine.jsp

Modified:
    branches/JAHIA-5-0-SP-BRANCH/core/src/webapp/jsp/jahia/engines/engine.j=
sp

Modified: branches/JAHIA-5-0-SP-BRANCH/core/src/webapp/jsp/jahia/engines/en=
gine.jsp
URL: https://svndev.jahia.net/websvn/diff.php?path=3D/branches/JAHIA-5-0-SP=
-BRANCH/core/src/webapp/jsp/jahia/engines/engine.jsp&rev=3D18299&repname=3D=
jahia
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- branches/JAHIA-5-0-SP-BRANCH/core/src/webapp/jsp/jahia/engines/engine.j=
sp (original)
+++ branches/JAHIA-5-0-SP-BRANCH/core/src/webapp/jsp/jahia/engines/engine.j=
sp Wed Aug 29 15:25:43 2007
@@ -351,11 +351,38 @@
     <% } else { %>
     window.onunload =3D closeTheWindow;
     <% } %>
+
+    // resize pageBody
+    function resizePagebody() {
+        var myWidth =3D 0, myHeight =3D 0;
+        if (typeof( window.innerWidth ) =3D=3D 'number') {
+            //Non-IE
+            myWidth =3D window.innerWidth;
+            myHeight =3D window.innerHeight;
+        } else if (document.documentElement && ( document.documentElement.=
clientWidth || document.documentElement.clientHeight )) {
+            //IE 6+ in 'standards compliant mode'
+            myWidth =3D document.documentElement.clientWidth;
+            myHeight =3D document.documentElement.clientHeight;
+        } else if (document.body && ( document.body.clientWidth || documen=
t.body.clientHeight )) {
+            //IE 4 compatible
+            myWidth =3D document.body.clientWidth;
+            myHeight =3D document.body.clientHeight;
+        }
+
+        // resize
+        var pageBodyEle =3D document.getElementById('pagebody<%=3D(results=
 !=3D null ? "ReadOnly" : "")%>');
+        var pageBodyEleHeight =3D pageBodyEle.offsetHeight;
+        var newHeight =3D (myHeight - 130);
+        if (newHeight > pageBodyEleHeight) {
+            pageBodyEle.style.height =3D (myHeight - 130) + "px";
+        }
+    }
+
 </script>
 =

 </head>
 =

-<body>
+<body onload=3D"javascript:resizePagebody();">
 <div id=3D"userShell">
 <div id=3D"wrapper"><!-- wrapper -->
     <form name=3D"mainForm" method=3D"post" action=3D"<%=3DengineUrl%>">

_______________________________________________
cvs_list mailing list
[email protected]
http://lists.jahia.org/cgi-bin/mailman/listinfo/cvs_list

Reply via email to