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:

ParameterTypeDescription
pos?EditorPosition | undefinedThe position to scroll into view.
margin?number | undefinedThe margin in pixels around the position.

Returns: void