From 3f5e294b976f8154fc32b8b867d2aca217b6a075 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Sun, 23 Apr 2006 09:59:04 +0000 Subject: [PATCH] Now the resize script hasn't anymore harcoded widths. --- mod/resource/type/ims/resize.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mod/resource/type/ims/resize.js b/mod/resource/type/ims/resize.js index c181eda81f..fab3f956ff 100644 --- a/mod/resource/type/ims/resize.js +++ b/mod/resource/type/ims/resize.js @@ -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 { @@ -75,4 +76,4 @@ function resizeiframe (hasNav) { document.getElementById('ims-contentframe').style.height = (winHeight - totalHeight)+'px'; document.getElementById('ims-containerdiv').style.height = (winHeight - totalHeight)+'px'; document.getElementById('ims-contentframe').style.width = iframeWidth; -} \ No newline at end of file +} -- 2.39.5