diff options
author | Andrew Dolgov <[email protected]> | 2006-02-25 05:46:08 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2006-02-25 05:46:08 +0100 |
commit | 1de2b92c16b2dd2e319635dd248f0e212174594b (patch) | |
tree | 195b576c648a21964eb4354cdf97a151a259c6df | |
parent | ce0619bbb0187545165e5ec9acb3235a37766316 (diff) |
more opera feeds frame size work
-rw-r--r-- | tt-rss.js | 14 | ||||
-rw-r--r-- | tt-rss.php | 6 |
2 files changed, 15 insertions, 5 deletions
@@ -394,6 +394,15 @@ function init() { } } +function resize_feeds_frame() { + var f = document.getElementById("feeds-frame"); + var tf = document.getElementById("mainFooter"); + var th = document.getElementById("mainHeader"); + + f.style.height = document.body.scrollHeight - tf.scrollHeight - + th.scrollHeight - 50 + "px"; +} + function init_second_stage() { try { @@ -411,9 +420,10 @@ function init_second_stage() { daemon_enabled = getCookie("ttrss_vf_daemon"); + // FIXME should be callled after window resize + if (navigator.userAgent.match("Opera")) { - var f = document.getElementById("feeds-frame"); - f.style.height = document.body.scrollHeight - 200 + "px"; + resize_feeds_frame(); } } catch (e) { diff --git a/tt-rss.php b/tt-rss.php index 89982ca14..03bbc0f61 100644 --- a/tt-rss.php +++ b/tt-rss.php @@ -68,7 +68,7 @@ window.onload = init; <table width="100%" height="100%" cellspacing="0" cellpadding="0" class="main"> <? if (get_pref($link, 'DISPLAY_HEADER')) { ?> <tr> - <td colspan="2" class="headerBox"> + <td colspan="2" class="headerBox" id="mainHeader"> <table cellspacing="0" cellpadding="0" width="100%"><tr> <td rowspan="2" class="header" valign="middle"> <img src="images/ttrss_logo.png" alt="logo"> @@ -90,7 +90,7 @@ window.onload = init; </tr> <? } else { ?> <tr> - <td class="small"> + <td class="small" id="mainHeader"> <div id="notify"><span id="notify_body"> </span></div> <div id="userDlgShadow"><div id="userDlg"> </div></div> </td><td class="welcomePrompt"> @@ -273,7 +273,7 @@ window.onload = init; <? } ?> <? if (get_pref($link, 'DISPLAY_FOOTER')) { ?> <tr> - <td colspan="2" class="footer"> + <td colspan="2" class="footer" id="mainFooter"> <a href="http://tt-rss.spb.ru/">Tiny-Tiny RSS</a> v<?= VERSION ?> © 2005 Andrew Dolgov <? if (WEB_DEMO_MODE) { ?> <br>Running in demo mode, some functionality is disabled. |