1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 13:35:56 +00:00

fix floating title sometimes obscuring next article title

This commit is contained in:
Andrew Dolgov
2013-07-11 08:35:12 +04:00
parent 8043035b42
commit 301a09dc55

View File

@@ -2230,7 +2230,6 @@ function scrollToRowId(id) {
function updateFloatingTitle() {
try {
var hf = $("headlines-frame");
var child = $("RROW-" + _active_article_id);
var elems = $$("#headlines-frame > div[id*=RROW]");
@@ -2250,7 +2249,8 @@ function updateFloatingTitle() {
PluginHost.run(PluginHost.HOOK_FLOATING_TITLE, child);
}
if (child.offsetTop < hf.scrollTop - header.offsetHeight)
if (child.offsetTop < hf.scrollTop - header.offsetHeight &&
child.offsetTop + child.offsetHeight - hf.scrollTop > header.offsetHeight)
Element.show("floatingTitle");
else
Element.hide("floatingTitle");