1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-16 03:55:56 +00:00

cdmExpandArticle: force-scroll to headline

This commit is contained in:
Andrew Dolgov
2013-03-20 10:27:47 +04:00
parent 6e2ed9cf65
commit 4895f99b9a

View File

@@ -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);