From 77c9b64dc7a0b8f1f1e2502653269c1e8dde4e98 Mon Sep 17 00:00:00 2001 From: zadam Date: Sun, 14 Apr 2019 19:43:44 +0200 Subject: [PATCH] re-enable animation for expanding since it seems to fix fancytree rendering glitches --- src/public/javascripts/desktop.js | 2 +- src/public/javascripts/services/tree.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/public/javascripts/desktop.js b/src/public/javascripts/desktop.js index 146b6a5d6..2f8688f8b 100644 --- a/src/public/javascripts/desktop.js +++ b/src/public/javascripts/desktop.js @@ -117,7 +117,7 @@ $("body").on("click", "a.external", function () { if (utils.isElectron()) { require('electron').ipcRenderer.on('create-day-sub-note', async function(event) { const todayNote = await dateNoteService.getTodayNote(); - const node = await treeService.expandToNote(todayNote.noteId, {noAnimation: true}); + const node = await treeService.expandToNote(todayNote.noteId); await treeService.createNote(node, todayNote.noteId, 'into', { type: "text", diff --git a/src/public/javascripts/services/tree.js b/src/public/javascripts/services/tree.js index 320824492..6233c070b 100644 --- a/src/public/javascripts/services/tree.js +++ b/src/public/javascripts/services/tree.js @@ -151,7 +151,7 @@ async function activateNote(notePath, noteLoadedListener) { glob.activeDialog.modal('hide'); } - const node = await expandToNote(notePath, {noAnimation: true}); + const node = await expandToNote(notePath); if (noteLoadedListener) { noteDetailService.addDetailLoadedListener(node.data.noteId, noteLoadedListener);