Skip to content

Commit

Permalink
fix: revert the "text mode loads partially scrolled down" fix (#471)
Browse files Browse the repository at this point in the history
  • Loading branch information
cloydlau authored Jul 26, 2024
1 parent 75fd80c commit 38e7dd9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib/components/modes/textmode/TextMode.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -618,8 +618,7 @@
codeMirrorView = new EditorView({
state,
parent: target,
scrollTo: EditorView.scrollIntoView(0) // see https://discuss.codemirror.net/t/editor-starts-partially-scrolled-down/7567
parent: target
})
return codeMirrorView
Expand Down

0 comments on commit 38e7dd9

Please sign in to comment.