From 0e8d48e9d525bbd081c59201e413be10878d059e Mon Sep 17 00:00:00 2001 From: stronk7 Date: Sun, 23 Apr 2006 17:22:45 +0000 Subject: [PATCH] Now the resize script supports both resources with and without navigation menu. --- mod/resource/type/ims/resize.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/mod/resource/type/ims/resize.js b/mod/resource/type/ims/resize.js index fab3f956ff..54bac83687 100644 --- a/mod/resource/type/ims/resize.js +++ b/mod/resource/type/ims/resize.js @@ -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; } -- 2.39.5