Skip to content

CodeMirrorEditor.scrollIntoView method

CodeMirrorEditor › scrollIntoView

Unofficial

Scroll the given position into view with an optional margin.

Signature:

scrollIntoView(pos?: EditorPosition | undefined, margin?: number | undefined): void

Parameters:

Parameter Type Description
pos? EditorPosition | undefined The position to scroll into view.
margin? number | undefined The margin in pixels around the position.

Returns: void