Hi Gurus,
I'm trying to set a min-height for codemirror. The reason behind is that I need codemirror to have a minimum height in case it does not have any content. I'm currently using the setHeight method, but it stops codemirror from expanding if the content size overflows the specified height.
Is there a workaround for this problem? Any help is appreciated.
Cheers,
George
You have to use CSS for this. Give the .CodeMirror-scroll class a min-height style.
Most helpful comment
You have to use CSS for this. Give the
.CodeMirror-scrollclass amin-heightstyle.