Height of preview iframe?
Posted: Tue Jul 31, 2012 1:38 am
What determines the height of an iframe when previewing an entry in the backend? I have made a few modifications to a template, but never touched preview_iframe.tpl nor entries.tpl, yet previewing entries frequently results in a very short iframe. When the iframe is too small, simply clicking on "preview" one or more times will finally produce the correct size iframe, ie sometimes it is too short, such as:
For example, I clicked on one particular entry, and I get this for the iframe... note the style="height: 26px...):
Clicking on the preview button a few times, and I get this, which is correct:
Sometimes it works fine, and I do not need to click on preview multiple times... other times I have to preview the entry several times before it looks correct. It always looks correct on the front end. Have tried this in s9y 1.6 & 1.6.2, same result.
For example, I clicked on one particular entry, and I get this for the iframe... note the style="height: 26px...):
Code: Select all
<iframe width="100%" scrolling="no" height="300" frameborder="0" title="Serendipity" marginheight="0" marginwidth="0" name="serendipity_iframe" id="serendipity_iframe" src="serendipity_admin.php?serendipity[is_iframe]=true&serendipity[iframe_mode]=preview" style="height: 26px; border: 0px none;">Your browser does not support the concept of iframes. Please open your serendipity_config.inc.php file and set $serendipity['use_iframe'] variable to FALSE.</iframe>
Code: Select all
<iframe width="100%" scrolling="no" height="300" frameborder="0" title="Serendipity" marginheight="0" marginwidth="0" name="serendipity_iframe" id="serendipity_iframe" src="serendipity_admin.php?serendipity[is_iframe]=true&serendipity[iframe_mode]=preview" style="height: 832px; border: 0px none;">Your browser does not support the concept of iframes. Please open your serendipity_config.inc.php file and set $serendipity['use_iframe'] variable to FALSE.</iframe>