.CodeMirror { resize: vertical; doesn't allow resizing

Works for me, when I add it to a basic test page. You will need to call .resize() when the editor changes size, to make sure it updates its internal layout measurements.