Index: trunk/core/src/main/webapp/WEB-INF/facelets/layout.xhtml =================================================================== diff -u -N -r831 -r968 --- trunk/core/src/main/webapp/WEB-INF/facelets/layout.xhtml (.../layout.xhtml) (revision 831) +++ trunk/core/src/main/webapp/WEB-INF/facelets/layout.xhtml (.../layout.xhtml) (revision 968) @@ -76,20 +76,21 @@ } h\tml #content { - height: 100%; - overflow: visible; + padding: 16px; /* replace the em units for padding with something we can compute with in the expressions below */ + overflow: auto; + height: expression((document.body.clientHeight - 2 * 31 - 49 + 1) + 'px'); /* 49 = header height, 31 = footer height, but why I have to substract it twice escapes me. 1 = so that it looks better.*/ + width: expression((document.body.clientWidth - 300 - 2 * 16) + 'px'); /* 300 = width of the sidebar, 16 = padding */ } #pageheader, #footer { width: expression(document.body.clientWidth + 'px'); } #sidebar-left { - height: expression(document.body.clientHeight - (parseInt(document.body.currentStyle.fontSize) * 1.3333333 * (8 + 5)) + 'px'); + height: expression((document.body.clientHeight - 31 - 49 + 2) + 'px'); /* 49 = header height, 31 = footer height, 2 = so it looks better. */ } -
@@ -124,6 +125,26 @@ + + + +