Skip to content

Commit

Permalink
Revert "fix: text mode loads partially scrolled down"
Browse files Browse the repository at this point in the history
This reverts commit 56e18ee.
  • Loading branch information
cloydlau committed Jul 26, 2024
1 parent 75fd80c commit b145b4b
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 b145b4b

Please sign in to comment.