more opera feeds frame size work

This commit is contained in:
Andrew Dolgov 2006-02-25 05:46:08 +01:00
parent ce0619bbb0
commit 1de2b92c16
2 changed files with 15 additions and 5 deletions

View File

@ -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() { function init_second_stage() {
try { try {
@ -411,9 +420,10 @@ function init_second_stage() {
daemon_enabled = getCookie("ttrss_vf_daemon"); daemon_enabled = getCookie("ttrss_vf_daemon");
// FIXME should be callled after window resize
if (navigator.userAgent.match("Opera")) { if (navigator.userAgent.match("Opera")) {
var f = document.getElementById("feeds-frame"); resize_feeds_frame();
f.style.height = document.body.scrollHeight - 200 + "px";
} }
} catch (e) { } catch (e) {

View File

@ -68,7 +68,7 @@ window.onload = init;
<table width="100%" height="100%" cellspacing="0" cellpadding="0" class="main"> <table width="100%" height="100%" cellspacing="0" cellpadding="0" class="main">
<? if (get_pref($link, 'DISPLAY_HEADER')) { ?> <? if (get_pref($link, 'DISPLAY_HEADER')) { ?>
<tr> <tr>
<td colspan="2" class="headerBox"> <td colspan="2" class="headerBox" id="mainHeader">
<table cellspacing="0" cellpadding="0" width="100%"><tr> <table cellspacing="0" cellpadding="0" width="100%"><tr>
<td rowspan="2" class="header" valign="middle"> <td rowspan="2" class="header" valign="middle">
<img src="images/ttrss_logo.png" alt="logo"> <img src="images/ttrss_logo.png" alt="logo">
@ -90,7 +90,7 @@ window.onload = init;
</tr> </tr>
<? } else { ?> <? } else { ?>
<tr> <tr>
<td class="small"> <td class="small" id="mainHeader">
<div id="notify"><span id="notify_body">&nbsp;</span></div> <div id="notify"><span id="notify_body">&nbsp;</span></div>
<div id="userDlgShadow"><div id="userDlg">&nbsp;</div></div> <div id="userDlgShadow"><div id="userDlg">&nbsp;</div></div>
</td><td class="welcomePrompt"> </td><td class="welcomePrompt">
@ -273,7 +273,7 @@ window.onload = init;
<? } ?> <? } ?>
<? if (get_pref($link, 'DISPLAY_FOOTER')) { ?> <? if (get_pref($link, 'DISPLAY_FOOTER')) { ?>
<tr> <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 ?> &copy; 2005 Andrew Dolgov <a href="http://tt-rss.spb.ru/">Tiny-Tiny RSS</a> v<?= VERSION ?> &copy; 2005 Andrew Dolgov
<? if (WEB_DEMO_MODE) { ?> <? if (WEB_DEMO_MODE) { ?>
<br>Running in demo mode, some functionality is disabled. <br>Running in demo mode, some functionality is disabled.