Skip to content

Commit

Permalink
Merge pull request #7916 from ikiw/codemirror-maxwidth
Browse files Browse the repository at this point in the history
Fix codemirror lineWrap max-width
  • Loading branch information
jasongrout committed Feb 24, 2020
2 parents ad0f1a5 + a13a0cc commit 85c0637
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/codemirror/src/editor.ts
Expand Up @@ -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;
Expand Down

0 comments on commit 85c0637

Please sign in to comment.