1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-15 20:55:56 +00:00

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() {
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) {