Skip to content

Commit 45b4c20

Browse files
committed
Do not scroll the editor into view when fixing the cursor
Fixes #6046
1 parent 31bbfe2 commit 45b4c20

File tree

2 files changed

+2
-2
lines changed
  • ts/WoltLabSuite/Core/Acp/Ui/Style
  • wcfsetup/install/files/js/WoltLabSuite/Core/Acp/Ui/Style

2 files changed

+2
-2
lines changed

ts/WoltLabSuite/Core/Acp/Ui/Style/Editor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function handleScss(isTainted: boolean): void {
6161

6262
const refreshCodeMirror = (element: any): void => {
6363
element.codemirror.refresh();
64-
element.codemirror.setCursor(element.codemirror.getCursor());
64+
element.codemirror.setCursor(element.codemirror.getCursor(), undefined, { scroll: false });
6565
};
6666

6767
if (isTainted) {

wcfsetup/install/files/js/WoltLabSuite/Core/Acp/Ui/Style/Editor.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)