summaryrefslogtreecommitdiff
path: root/tt-rss.js
diff options
context:
space:
mode:
Diffstat (limited to 'tt-rss.js')
-rw-r--r--tt-rss.js17
1 files changed, 14 insertions, 3 deletions
diff --git a/tt-rss.js b/tt-rss.js
index f6a50733e..7167d0584 100644
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -365,9 +365,20 @@ 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";
+
+ var footer_height = 0;
+ var header_height = 0;
+
+ if (tf) {
+ footer_height = tf.scrollHeight;
+ }
+
+ if (th) {
+ header_height = th.scrollHeight;
+ }
+
+ f.style.height = document.body.scrollHeight - footer_height -
+ header_height - 50 + "px";
}
function init_second_stage() {