From 165e8985b04424616f039d00341ab625a574938d Mon Sep 17 00:00:00 2001 From: Ran Luo Date: Sat, 15 Jun 2019 22:12:54 +0800 Subject: [PATCH] fix-#1037 (#1112) --- src/renderer/components/editorWithTabs/editor.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/renderer/components/editorWithTabs/editor.vue b/src/renderer/components/editorWithTabs/editor.vue index ab889373..9dc5a4c7 100644 --- a/src/renderer/components/editorWithTabs/editor.vue +++ b/src/renderer/components/editorWithTabs/editor.vue @@ -277,6 +277,8 @@ currentFile: function (value, oldValue) { if (value && value !== oldValue) { this.scrollToCursor(0) + // Hide float tools if needed. + this.editor && this.editor.hideAllFloatTools() } }, sourceCode: function (value, oldValue) {