From: Andrew Dolgov Date: Sat, 25 Feb 2006 04:46:08 +0000 (+0100) Subject: more opera feeds frame size work X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=1de2b92c16b2dd2e319635dd248f0e212174594b;p=tt-rss.git more opera feeds frame size work --- 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;