}
}
+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 {
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) {
<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">
</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">
<? } ?>
<? 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.