mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
🐛 Fix monaco editor resize as suggested in #2800
This commit is contained in:
@@ -88,6 +88,7 @@ export default mixins(
|
|||||||
if (!this.$refs.code) return;
|
if (!this.$refs.code) return;
|
||||||
|
|
||||||
this.monacoInstance = monaco.editor.create(this.$refs.code as HTMLElement, {
|
this.monacoInstance = monaco.editor.create(this.$refs.code as HTMLElement, {
|
||||||
|
automaticLayout: true,
|
||||||
value: this.value,
|
value: this.value,
|
||||||
language: this.type === 'code' ? 'javascript' : 'json',
|
language: this.type === 'code' ? 'javascript' : 'json',
|
||||||
tabSize: 2,
|
tabSize: 2,
|
||||||
|
|||||||
Reference in New Issue
Block a user