MCPcopy Index your code
hub / github.com/witheve/Eve / scrollIntoView

Method scrollIntoView

typings/codemirror/codemirror.d.ts:227–227  ·  view source on GitHub ↗

Scrolls the given element into view. pos is a { line , ch } position, referring to a given character, null, to refer to the cursor. The margin parameter is optional. When given, it indicates the amount of pixels around the given area that should be made visible as well.

(pos: CodeMirror.Position, margin?: number)

Source from the content-addressed store, hash-verified

225 /** Scrolls the given element into view. pos is a { line , ch } position, referring to a given character, null, to refer to the cursor.
226 The margin parameter is optional. When given, it indicates the amount of pixels around the given area that should be made visible as well. */
227 scrollIntoView(pos: CodeMirror.Position, margin?: number): void;
228
229 /** Scrolls the given element into view. pos is a { left , top , right , bottom } object, in editor-local coordinates.
230 The margin parameter is optional. When given, it indicates the amount of pixels around the given area that should be made visible as well. */

Callers 8

extendToFunction · 0.80
makeChangeFromHistoryFunction · 0.80
maybeScrollWindowFunction · 0.80
onPromptKeyUpFunction · 0.80
nextFunction · 0.80
NavigatorClass · 0.80
jumpToMethod · 0.80
CommentsClass · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected