Disable CodeMirror infinite scroll

This commit is contained in:
Konrad Borowski 2019-11-25 20:05:18 +01:00
parent e307c56ef4
commit 2291ea4d58
2 changed files with 1 additions and 5 deletions

View File

@ -1,8 +1,5 @@
.CodeMirror {
border: 1px solid #bbbdbe;
height: auto;
height: 372px;
font-size: 14.4px;
}
.CodeMirror-scroll {
min-height: 372px;
}

View File

@ -64,7 +64,6 @@ export default function createTextareaEditor(textarea, onChange) {
const editor = CodeMirror.fromTextArea(textarea, {
lineNumbers: true,
lineWrapping: true,
viewportMargin: Infinity,
})
editor.on('change', onChange)
return new CodeMirrorEditor(editor)