Fixes scrolling in CodeMirror