Skip to content

Commit 9bc3057

Browse files
committed
playground: enable ScrollBeyondLastLine and update StickyScroll options in EditorPane and PreviewPane
1 parent 735eb9f commit 9bc3057

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

playground/Components/Playground/EditorPane.razor

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@
5151
FontSize = 14,
5252
FontFamily = "'JetBrains Mono', monospace",
5353
Minimap = new EditorMinimapOptions { Enabled = false },
54-
ScrollBeyondLastLine = false,
54+
StickyScroll = new EditorStickyScrollOptions { Enabled = false },
55+
ScrollBeyondLastLine = true,
5556
RenderLineHighlight = "all",
5657
TabSize = 4,
5758
BracketPairColorization = new BracketPairColorizationOptions { Enabled = true },

playground/Components/Playground/PreviewPane.razor

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@
5050
FontFamily = "'JetBrains Mono', monospace",
5151
ReadOnly = true,
5252
Minimap = new EditorMinimapOptions { Enabled = false },
53-
ScrollBeyondLastLine = false,
53+
StickyScroll = new EditorStickyScrollOptions { Enabled = false },
54+
ScrollBeyondLastLine = true,
5455
RenderLineHighlight = "none",
5556
TabSize = 4,
5657
BracketPairColorization = new BracketPairColorizationOptions { Enabled = true },

0 commit comments

Comments
 (0)