FE-Mars/monaco-editor-vue

wrong editor size

Closed this issue · 3 comments

I'm setting the size of the editor but the content is always 5px x 5px

<MonacoEditor
width=500
height=500

theme="vs-dark"
:value="ajson"
language="json"
:options="options"
@editorMounted="onMounted"
@change="onChange">

image

Any idea?

I'm setting the size of the editor but the content is always 5px x 5px

<MonacoEditor
width=500 height=500
theme="vs-dark"
:value="ajson"
language="json"
:options="options"
@editorMounted="onMounted"
@change="onChange">
image

Any idea?

Can you create a demo on Codesandbox?

Have you found an answer to this issue?

Have you found an answer to this issue?

Ensure that the parent node is in the DOM during initialization