Skip to content

Commit

Permalink
fix(editor): editor height by resize window #242 (#253)
Browse files Browse the repository at this point in the history
  • Loading branch information
antonreshetov authored Aug 19, 2022
1 parent 9b8b9e6 commit 7865ff8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/renderer/components/editor/EditorCodemirror.vue
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,10 @@ emitter.on('snippet:format', () => format())
onMounted(() => {
init()
window.addEventListener('resize', () => {
forceRefresh.value = Math.random()
})
})
onUnmounted(() => {
Expand Down

0 comments on commit 7865ff8

Please sign in to comment.