wrong editor size
Closed this issue · 3 comments
cbbrsc commented
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">
Any idea?
FE-Mars commented
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">
Any idea?
Can you create a demo on Codesandbox?
iosimliviu commented
Have you found an answer to this issue?
FE-Mars commented
Have you found an answer to this issue?
Ensure that the parent node is in the DOM during initialization