From 25c84677534f9c97eca77498177aa5afb74142b2 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 17 May 2020 17:01:52 +0300 Subject: rename Headlines.correctHeadlinesOffset() to scrollToArticleId() invoke it in Article.view() instead of all over the place --- js/Article.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'js/Article.js') diff --git a/js/Article.js b/js/Article.js index 91b2b4b36..b0021f47b 100644 --- a/js/Article.js +++ b/js/Article.js @@ -139,7 +139,7 @@ define(["dojo/_base/declare"], function (declare) { c.attr('content', article); PluginHost.run(PluginHost.HOOK_ARTICLE_RENDERED, c.domNode); - Headlines.correctHeadlinesOffset(Article.getActive()); + //Headlines.correctHeadlinesOffset(Article.getActive()); try { c.focus(); @@ -198,6 +198,7 @@ define(["dojo/_base/declare"], function (declare) { }, view: function (id, noexpand) { this.setActive(id); + Headlines.scrollToArticleId(id); if (!noexpand) { const hl = Headlines.objectById(id); -- cgit v1.2.3