Skip to content

Commit 4b4adb1

Browse files
authored
Enable Monaco automaticLayout (#21516)
Enable [`automaticLayout`](https://microsoft.github.io/monaco-editor/api/interfaces/monaco.editor.IDiffEditorOptions.html#automaticLayout) for monaco so it can reflow itself. Fixes: #21508
1 parent 19df07f commit 4b4adb1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

web_src/js/features/codeeditor.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const baseOptions = {
1717
rulers: false,
1818
scrollbar: {horizontalScrollbarSize: 6, verticalScrollbarSize: 6},
1919
scrollBeyondLastLine: false,
20+
automaticLayout: true,
2021
};
2122

2223
function getEditorconfig(input) {

0 commit comments

Comments
 (0)