CodeMirrorEditor.scrollIntoView method
CodeMirrorEditor › scrollIntoView
Unofficial
Scroll the given position into view with an optional margin.Signature:
scrollIntoView(pos?: EditorPosition | undefined, margin?: number | undefined): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| pos? | EditorPosition | undefined | The position to scroll into view. |
| margin? | number | undefined | The margin in pixels around the position. |
Returns: void