resize window on CodeMirror resize