From: Andrew Dolgov Date: Wed, 20 Mar 2013 06:27:47 +0000 (+0400) Subject: cdmExpandArticle: force-scroll to headline X-Git-Tag: 1.7.5~83 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=4895f99b9a6e329494c050b5799542af8e7a3c02;p=tt-rss.git cdmExpandArticle: force-scroll to headline --- diff --git a/js/viewfeed.js b/js/viewfeed.js index 584fff57..da474a2c 100644 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -1365,6 +1365,7 @@ function cdmExpandArticle(id) { } setActiveArticleId(id); + cdmScrollToArticleId(id, true); elem = $("CICD-" + id); @@ -1377,13 +1378,6 @@ function cdmExpandArticle(id) { Element.show(collapse); } - /* var new_offset = $("RROW-" + id).offsetTop; - - $("headlines-frame").scrollTop += (new_offset-old_offset); - - if ($("RROW-" + id).offsetTop != old_offset) - $("headlines-frame").scrollTop = new_offset; */ - toggleUnread(id, 0, true); toggleSelected(id);