I have implemented CodeMirror to display a JSON object within a simple div:
<codemirror v-model="codeToPrint" class="CodeMirror" :options="cmOptions"/>
Shown below are the configuration options I am using :
cmOptions: {
mode: "application/json",
lineNumbers: true,
lineWrapping: true,
viewportMargin: Infinity,
readOnly: true,
matchBrackets: true,
},
Despite trying to adjust the height with height : 1500px;
or any other value, the size remains unchanged. I have searched through the documentation but could not find a solution.
What could be causing this issue?