From: Andrew Dolgov Date: Wed, 20 Mar 2013 06:43:55 +0000 (+0400) Subject: Revert "cdmExpandArticle: force-scroll to headline" X-Git-Tag: 1.7.5~82 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=c582bf25dd31b4562929e9b7fefb5d6851171d8c;p=tt-rss.git Revert "cdmExpandArticle: force-scroll to headline" This reverts commit 4895f99b9a6e329494c050b5799542af8e7a3c02. --- diff --git a/js/viewfeed.js b/js/viewfeed.js index da474a2c..584fff57 100644 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -1365,7 +1365,6 @@ function cdmExpandArticle(id) { } setActiveArticleId(id); - cdmScrollToArticleId(id, true); elem = $("CICD-" + id); @@ -1378,6 +1377,13 @@ 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);