From b7008b3bdcde760004ab1fcd8671af12cba6fcb0 Mon Sep 17 00:00:00 2001 From: Anton Reshetov Date: Fri, 19 Aug 2022 09:34:41 +0300 Subject: [PATCH] fix(editor): editor height by resize window #242 --- src/renderer/components/editor/EditorCodemirror.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/renderer/components/editor/EditorCodemirror.vue b/src/renderer/components/editor/EditorCodemirror.vue index 8729e80e..52118118 100644 --- a/src/renderer/components/editor/EditorCodemirror.vue +++ b/src/renderer/components/editor/EditorCodemirror.vue @@ -339,6 +339,10 @@ emitter.on('snippet:format', () => format()) onMounted(() => { init() + + window.addEventListener('resize', () => { + forceRefresh.value = Math.random() + }) }) onUnmounted(() => {