From a13a0cc9a650131d3ffd23a5440d0a67da8f881d Mon Sep 17 00:00:00 2001 From: ikiw Date: Tue, 25 Feb 2020 00:14:01 +0530 Subject: [PATCH] Fix codemirror lineWrap max-width --- packages/codemirror/src/editor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/codemirror/src/editor.ts b/packages/codemirror/src/editor.ts index b6a0716e04e2..05e8d7626432 100644 --- a/packages/codemirror/src/editor.ts +++ b/packages/codemirror/src/editor.ts @@ -1438,7 +1438,7 @@ namespace Private { value === 'bounded' ? `${config.wordWrapColumn}ch` : null; const width = value === 'wordWrapColumn' ? `${config.wordWrapColumn}ch` : null; - lines.style.setProperty('maxWidth', maxWidth); + lines.style.setProperty('max-width', maxWidth); lines.style.setProperty('width', width); editor.setOption('lineWrapping', lineWrapping); break;