]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix floating title sometimes obscuring next article title
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 11 Jul 2013 04:35:12 +0000 (08:35 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 11 Jul 2013 04:35:12 +0000 (08:35 +0400)
js/viewfeed.js

index 0b6cb1fff99f821d8e054970e7daa9f7560100a7..e23db86bdc4438bfb5164901abd44fd71604879b 100644 (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");