Codemirror: min-height on setSize

Created on 4 Oct 2014  路  1Comment  路  Source: codemirror/CodeMirror

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

Most helpful comment

You have to use CSS for this. Give the .CodeMirror-scroll class a min-height style.

>All comments

You have to use CSS for this. Give the .CodeMirror-scroll class a min-height style.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mohinishsharma picture mohinishsharma  路  3Comments

liviuignat picture liviuignat  路  3Comments

mtaran-google picture mtaran-google  路  5Comments

Azmisov picture Azmisov  路  4Comments

qiueer picture qiueer  路  4Comments