From c582bf25dd31b4562929e9b7fefb5d6851171d8c Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 20 Mar 2013 10:43:55 +0400 Subject: [PATCH] Revert "cdmExpandArticle: force-scroll to headline" This reverts commit 4895f99b9a6e329494c050b5799542af8e7a3c02. --- js/viewfeed.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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); -- 2.39.5