Skip to content

Commit

Permalink
fix: text mode loads partially scrolled down
Browse files Browse the repository at this point in the history
  • Loading branch information
josdejong committed May 6, 2024
1 parent e038087 commit 56e18ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/components/modes/textmode/TextMode.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,8 @@
codeMirrorView = new EditorView({
state,
parent: target
parent: target,
scrollTo: EditorView.scrollIntoView(0) // see https://discuss.codemirror.net/t/editor-starts-partially-scrolled-down/7567
})
return codeMirrorView
Expand Down

0 comments on commit 56e18ee

Please sign in to comment.