From 644a9fa06e202af2eff887fcdc2a090ef72d07c0 Mon Sep 17 00:00:00 2001 From: ywarnier Date: Fri, 5 Aug 2011 18:25:03 -0500 Subject: [PATCH] Assign default height of 600px to allow for better visibility of embedded PDFs --- main/document/showinframes.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main/document/showinframes.php b/main/document/showinframes.php index 2c6c9c3fd5..ade601f8f2 100755 --- a/main/document/showinframes.php +++ b/main/document/showinframes.php @@ -170,6 +170,7 @@ $htmlHeadXtra[] = ' //FooterHeight = document.getElementById("footer").offsetHeight; //document.getElementById("mainFrame").style.height = ((docHeight-(parseInt(HeaderHeight)+parseInt(FooterHeight)))+60)+"px"; my_iframe = document.getElementById("mainFrame"); + //this doesnt seem to work in IE 7,8,9 new_height = my_iframe.contentWindow.document.body.scrollHeight; my_iframe.height = my_iframe.contentWindow.document.body.scrollHeight + "px"; }; @@ -203,6 +204,6 @@ if ($pathinfo['extension']=='wav' && api_get_setting('enable_nanogong') == 'true echo ''; } else{ - echo ''; + echo ''; } Display::display_footer();