From e5ebee0941656d1aee0578f7fcd96607a82f806e Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 30 Jul 2008 04:27:25 +0100 Subject: [PATCH] render_article: fix resetting scroll on article change --- viewfeed.js | 4 ++++ 1 file changed, 4 insertions(+) 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) { -- 2.39.5