Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix(editor): editor height by resize window #242
  • Loading branch information
antonreshetov committed Aug 19, 2022
commit b7008b3bdcde760004ab1fcd8671af12cba6fcb0
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