Set size to CodeMirror editor?

Nikola Ninkovic picture Nikola Ninkovic · Dec 8, 2012 · Viewed 8.5k times · Source

I'm creating mobile app using jQuery Mobile and CodeMirror as a code editor. I'm not a designer so I don't usually mess up with CSS.

This is what I have so far Valid XHTML .

I want CodeMirror control to be stretched down to footer. Css height property won't work here.

// Edit

Problem was in height of the parent DIV, sorry

Answer

aljordan82 picture aljordan82 · Dec 9, 2012

I can't write comments yet. did you try editor.setSize(width, height)