MCPcopy Index your code
hub / github.com/DHTMLX/gantt / ensureCursorVisible

Function ensureCursorVisible

samples/common/codehighlight/codemirror.js:3510–3514  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

3508 // Make sure that at the end of the operation the current cursor is
3509 // shown.
3510 function ensureCursorVisible(cm) {
3511 resolveScrollToPos(cm);
3512 var cur = cm.getCursor();
3513 cm.curOp.scrollToPos = {from: cur, to: cur, margin: cm.options.cursorScrollMargin};
3514 }
3515
3516 function scrollToCoords(cm, x, y) {
3517 if (x != null || y != null) { resolveScrollToPos(cm); }

Callers 5

setSelectionNoUndoFunction · 0.85
codemirror.jsFile · 0.85
deleteNearSelectionFunction · 0.85
applyTextInputFunction · 0.85
addEditorMethodsFunction · 0.85

Calls 1

resolveScrollToPosFunction · 0.85

Tested by

no test coverage detected