diff options
author | Andrew Dolgov <[email protected]> | 2013-07-11 08:35:12 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-07-11 08:35:12 +0400 |
commit | 301a09dc5591e6f4022bec9611d6f5979d645d0b (patch) | |
tree | 268d1a9bb38842020237be19fea703b44083be11 | |
parent | 8043035b4213aeb197e431998efac1c5fbdf7003 (diff) |
fix floating title sometimes obscuring next article title
-rw-r--r-- | js/viewfeed.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/viewfeed.js b/js/viewfeed.js index 0b6cb1fff..e23db86bd 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"); |