Skip to content

Commit 7865ff8

Browse files
fix(editor): editor height by resize window #242 (#253)
1 parent 9b8b9e6 commit 7865ff8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/renderer/components/editor/EditorCodemirror.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,10 @@ emitter.on('snippet:format', () => format())
339339
340340
onMounted(() => {
341341
init()
342+
343+
window.addEventListener('resize', () => {
344+
forceRefresh.value = Math.random()
345+
})
342346
})
343347
344348
onUnmounted(() => {

0 commit comments

Comments
 (0)