From 4895f99b9a6e329494c050b5799542af8e7a3c02 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 20 Mar 2013 10:27:47 +0400 Subject: [PATCH] cdmExpandArticle: force-scroll to headline --- js/viewfeed.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/js/viewfeed.js b/js/viewfeed.js index 584fff574..da474a2c0 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);