We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1bf35c commit 3ac661bCopy full SHA for 3ac661b
packages/sfc-playground/src/codemirror/CodeMirror.vue
@@ -55,9 +55,16 @@ onMounted(() => {
55
editor.setOption('mode', props.mode)
56
})
57
58
- window.addEventListener('resize', debounce(() => {
+ window.addEventListener(
59
+ 'resize',
60
+ debounce(() => {
61
+ editor.refresh()
62
+ })
63
+ )
64
+
65
+ setTimeout(() => {
66
editor.refresh()
- }))
67
+ }, 50)
68
69
</script>
70
@@ -70,7 +77,7 @@ onMounted(() => {
77
}
71
78
72
79
.CodeMirror {
73
- font-family: "Source Code Pro", monospace;
80
+ font-family: 'Source Code Pro', monospace;
74
81
height: 100%;
75
82
76
83
</style>
0 commit comments