From 301a09dc5591e6f4022bec9611d6f5979d645d0b Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 11 Jul 2013 08:35:12 +0400 Subject: [PATCH] fix floating title sometimes obscuring next article title --- js/viewfeed.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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");