Skip to content

CodeMirrorEditor.scrollIntoView method

CodeMirrorEditor › scrollIntoView

Unofficial

Scroll the given position into view with an optional margin.

Signature:

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

Parameters:

ParameterTypeDescription
pos?EditorPositionThe position to scroll into view.
margin?numberThe margin in pixels around the position.

Returns: void