Now the resize script supports both resources with and

without navigation menu.
This commit is contained in:
stronk7 2006-04-23 17:22:45 +00:00
parent 375da10d09
commit 0e8d48e9d5

View file

@ -73,7 +73,12 @@ function resizeiframe (hasNav) {
var iframeWidth = '99%';
}
document.getElementById('ims-contentframe').style.height = (winHeight - totalHeight)+'px';
if (hasNav == true) {
document.getElementById('ims-contentframe').style.height = (winHeight - totalHeight)+'px';
document.getElementById('ims-contentframe').style.width = iframeWidth;
} else {
document.getElementById('ims-contentframe-no-nav').style.height = (winHeight - totalHeight)+'px';
document.getElementById('ims-contentframe-no-nav').style.width = iframeWidth;
}
document.getElementById('ims-containerdiv').style.height = (winHeight - totalHeight)+'px';
document.getElementById('ims-contentframe').style.width = iframeWidth;
}