[gh-15] Adjust the CodeMirror editor height on window resize