Skip to content

Commit

Permalink
fix: make sure the Monaco editor gets the correct character size
Browse files Browse the repository at this point in the history
  • Loading branch information
KermanX committed Nov 30, 2024
1 parent e908dd2 commit 45913b4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/client/builtin/Monaco.vue
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ onMounted(async () => {
})

nextTick(() => monaco.editor.remeasureFonts())
setTimeout(() => monaco.editor.remeasureFonts(), 1000)
})
</script>

Expand Down

0 comments on commit 45913b4

Please sign in to comment.