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