From: Andrew Dolgov Date: Thu, 11 Jul 2013 04:35:12 +0000 (+0400) Subject: fix floating title sometimes obscuring next article title X-Git-Tag: 1.9~50^2~2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=301a09dc5591e6f4022bec9611d6f5979d645d0b;p=tt-rss.git fix floating title sometimes obscuring next article title --- diff --git a/js/viewfeed.js b/js/viewfeed.js index 0b6cb1ff..e23db86b 100644 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -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");