🐛 Fix monaco editor resize as suggested in #2800

This commit is contained in:
Jan Oberhauser 2022-02-12 08:43:32 +01:00
parent 5528698c31
commit 3e92fae954

View file

@ -88,6 +88,7 @@ export default mixins(
if (!this.$refs.code) return;
this.monacoInstance = monaco.editor.create(this.$refs.code as HTMLElement, {
automaticLayout: true,
value: this.value,
language: this.type === 'code' ? 'javascript' : 'json',
tabSize: 2,