fix resize_feed_list if header or footer are disabled (closes #65)
This commit is contained in:
parent
c017149cde
commit
a6c3f28c4a
15
tt-rss.js
15
tt-rss.js
|
@ -366,8 +366,19 @@ function resize_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() {
|
||||
|
|
Loading…
Reference in New Issue