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;
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';
}
else {