mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 17:25:55 +00:00
rename Headlines.correctHeadlinesOffset() to scrollToArticleId()
invoke it in Article.view() instead of all over the place
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user