From bf2db6eac7072911c43c6c34d76a003e2d514bf3 Mon Sep 17 00:00:00 2001 From: azivner Date: Thu, 28 Dec 2017 20:13:54 -0500 Subject: [PATCH] after loading new note make sure editor is scrolled to the top --- public/javascripts/note_editor.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/javascripts/note_editor.js b/public/javascripts/note_editor.js index 354b5943c..1f9d14cef 100644 --- a/public/javascripts/note_editor.js +++ b/public/javascripts/note_editor.js @@ -128,6 +128,9 @@ const noteEditor = (function() { setNoteBackgroundIfProtected(currentNote); noteTree.setNoteTreeBackgroundBasedOnProtectedStatus(noteId); + // after loading new note make sure editor is scrolled to the top + noteDetailWrapperEl.scrollTop(0); + showAppIfHidden(); }