From 1de2b92c16b2dd2e319635dd248f0e212174594b Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 25 Feb 2006 05:46:08 +0100 Subject: [PATCH] more opera feeds frame size work --- tt-rss.js | 14 ++++++++++++-- tt-rss.php | 6 +++--- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/tt-rss.js b/tt-rss.js index b72e9734..758e3e89 100644 --- a/tt-rss.js +++ b/tt-rss.js @@ -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 89982ca1..03bbc0f6 100644 --- a/tt-rss.php +++ b/tt-rss.php @@ -68,7 +68,7 @@ window.onload = init; -
+ - -
logo @@ -90,7 +90,7 @@ window.onload = init;
+
 
 
@@ -273,7 +273,7 @@ window.onload = init;