fix scrolling to the top of detail after switching note

This commit is contained in:
azivner
2018-12-24 09:47:00 +01:00
parent 812f9f6fca
commit a32645cdeb
8 changed files with 15 additions and 8 deletions

View File

@@ -223,7 +223,7 @@ async function loadNoteDetail(noteId) {
treeService.setBranchBackgroundBasedOnProtectedStatus(noteId);
// after loading new note make sure editor is scrolled to the top
$noteDetailWrapper.scrollTop(0);
getComponent(currentNote.type).scrollToTop();
$scriptArea.empty();