scrollPastEnd

fun scrollPastEnd(padding: Dp = 200.dp): Extension

Extension that adds empty space after the last line of the document, allowing the user to scroll so the last line sits at the top.

Port of scrollpastend.ts from CodeMirror 6.

Parameters

padding

The height of the trailing spacer. Defaults to 50% of the editor height, which mimics CodeMirror's default.