Browse Source

Reinserting support for the "iframe_height" option. This might be done in a better way - if so, please do it.

Fredrik Jervfors 17 years ago
parent
commit
99264da765
3 changed files with 2 additions and 2 deletions
  1. 1 0
      functions/mime.php
  2. 0 1
      templates/default/css/default.css
  3. 1 1
      templates/default/read_html_iframe.tpl

+ 1 - 0
functions/mime.php

@@ -421,6 +421,7 @@ function formatBody($imap_stream, $message, $color, $wrap_at, $ent_num, $id, $ma
 
                 global $oTemplate;
                 $oTemplate->assign('iframe_url', $iframeurl);
+                $oTemplate->assign('iframe_height', $iframe_height);
                 $oTemplate->assign('html_body', $html_body);
 
                 $body = $oTemplate->fetch('read_html_iframe.tpl');

+ 0 - 1
templates/default/css/default.css

@@ -1068,7 +1068,6 @@ div.htmlIframe {
 }
 
 div.htmlIframe iframe {
-    height: 250px;
     width:100%;
 }
 

+ 1 - 1
templates/default/read_html_iframe.tpl

@@ -24,7 +24,7 @@ extract($t);
 ?>
 <div class="htmlIframe">
 <?php echo _("Viewing HTML formatted email"); ?>
-<iframe name="message_frame" src="<?php echo $iframe_url; ?>" frameborder="1" marginwidth="0" marginheight="0" scrolling="auto">
+<iframe name="message_frame" src="<?php echo $iframe_url; ?>" frameborder="1" marginwidth="0" marginheight="0" scrolling="auto" height="<?php echo $iframe_height; ?>">
 <?php echo $html_body; ?>
 </iframe>
 </div>