Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set size to CodeMirror editor?

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

like image 785
Nikola Ninkovic Avatar asked Jul 29 '26 05:07

Nikola Ninkovic


1 Answers

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

like image 127
aljordan82 Avatar answered Jul 30 '26 23:07

aljordan82



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!