Now the resize script hasn't anymore harcoded widths.

This commit is contained in:
stronk7 2006-04-23 09:59:04 +00:00
parent ffdf8977c9
commit 3f5e294b97

View file

@ -65,7 +65,8 @@ function resizeiframe (hasNav) {
bottomMargin; bottomMargin;
if (hasNav == true) { if (hasNav == true) {
var iframeWidth = (winWidth - 325)+'px'; var navBarWidth = document.getElementById('ims-menudiv').offsetWidth;
var iframeWidth = (winWidth - navBarWidth - 25)+'px';
document.getElementById('ims-menudiv').style.height = (winHeight - totalHeight)+'px'; document.getElementById('ims-menudiv').style.height = (winHeight - totalHeight)+'px';
} }
else { else {
@ -75,4 +76,4 @@ function resizeiframe (hasNav) {
document.getElementById('ims-contentframe').style.height = (winHeight - totalHeight)+'px'; document.getElementById('ims-contentframe').style.height = (winHeight - totalHeight)+'px';
document.getElementById('ims-containerdiv').style.height = (winHeight - totalHeight)+'px'; document.getElementById('ims-containerdiv').style.height = (winHeight - totalHeight)+'px';
document.getElementById('ims-contentframe').style.width = iframeWidth; document.getElementById('ims-contentframe').style.width = iframeWidth;
} }