From: Andrew Dolgov Date: Sat, 25 Feb 2006 05:07:51 +0000 (+0100) Subject: fix headlines height for Opera X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=4cb6f375d758b59846945cdec497212a3bdc1d7b;p=tt-rss.git fix headlines height for Opera --- diff --git a/tt-rss.js b/tt-rss.js index 758e3e89..4deac445 100644 --- a/tt-rss.js +++ b/tt-rss.js @@ -424,6 +424,15 @@ function init_second_stage() { if (navigator.userAgent.match("Opera")) { resize_feeds_frame(); + + // fix headlines frame height for Opera + var h = document.getElementById("headlines"); + var c = document.getElementById("content"); + var nh = document.body.scrollHeight * 0.25; + + h.style.height = nh + "px"; + c.style.height = c.scrollHeight - nh + "px"; + } } catch (e) {