From 3b98428c8c9f3aea69393294b2929812936f8f51 Mon Sep 17 00:00:00 2001 From: zadam Date: Thu, 2 Jan 2020 19:03:54 +0100 Subject: [PATCH] change order of execution to mitigate race conditions --- src/public/javascripts/services/tab_context.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/public/javascripts/services/tab_context.js b/src/public/javascripts/services/tab_context.js index 86aa65fa9..6d732724a 100644 --- a/src/public/javascripts/services/tab_context.js +++ b/src/public/javascripts/services/tab_context.js @@ -162,9 +162,6 @@ class TabContext { this.noteChangeDisabled = false; } - // after loading new note make sure editor is scrolled to the top - this.getComponent().scrollToTop(); - this.setTitleBar(); this.cleanup(); // esp. on windows autocomplete is not getting closed automatically @@ -186,6 +183,9 @@ class TabContext { } bundleService.executeRelationBundles(this.note, 'runOnNoteView', this); + + // after loading new note make sure editor is scrolled to the top + this.getComponent().scrollToTop(); } async show() {