cdmExpandArticle: force-scroll to headline

This commit is contained in:
Andrew Dolgov 2013-03-20 10:27:47 +04:00
parent 6e2ed9cf65
commit 4895f99b9a
1 changed files with 1 additions and 7 deletions

View File

@ -1365,6 +1365,7 @@ function cdmExpandArticle(id) {
} }
setActiveArticleId(id); setActiveArticleId(id);
cdmScrollToArticleId(id, true);
elem = $("CICD-" + id); elem = $("CICD-" + id);
@ -1377,13 +1378,6 @@ function cdmExpandArticle(id) {
Element.show(collapse); 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); toggleUnread(id, 0, true);
toggleSelected(id); toggleSelected(id);