From: Andrew Dolgov Date: Wed, 30 Jul 2008 03:27:25 +0000 (+0100) Subject: render_article: fix resetting scroll on article change X-Git-Tag: 1.2.26~53 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=e5ebee0941656d1aee0578f7fcd96607a82f806e;p=tt-rss.git render_article: fix resetting scroll on article change --- diff --git a/viewfeed.js b/viewfeed.js index ae9e443e..4ee06e46 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -258,6 +258,10 @@ function render_article(article) { var fi = document.getElementById("content-insert"); + try { + fi.scrollTop = 0; + } catch (e) { }; + fi.innerHTML = article; } catch (e) {