From: Andrew Dolgov Date: Tue, 16 Nov 2010 07:09:19 +0000 (+0300) Subject: fix setting scrollTop on headlines buffer X-Git-Tag: 1.5.0~210 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=9eac2f0db84c0c1b2ce19ca38cfe4eadb145ac9c;p=tt-rss.git fix setting scrollTop on headlines buffer --- diff --git a/viewfeed.js b/viewfeed.js index 4c9edfbd..a53c04f6 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -1226,7 +1226,7 @@ function editTagsInsert() { function cdmScrollToArticleId(id) { try { - var ctr = $("headlinesInnerContainer"); + var ctr = $("headlines-frame"); var e = $("RROW-" + id); if (!e || !ctr) return; @@ -1748,10 +1748,10 @@ function cdmExpandArticle(id) { var new_offset = $("RROW-" + id).offsetTop; - $("headlinesInnerContainer").scrollTop += (new_offset-old_offset); + $("headlines-frame").scrollTop += (new_offset-old_offset); if ($("RROW-" + id).offsetTop != old_offset) - $("headlinesInnerContainer").scrollTop = new_offset; + $("headlines-frame").scrollTop = new_offset; toggleUnread(id, 0, true); toggleSelected(id); @@ -2207,7 +2207,7 @@ function correctHeadlinesOffset(id) { try { - var container = $("headlinesInnerContainer"); + var container = $("headlines-frame"); var row = $("RROW-" + id); var viewport = container.offsetHeight;