MCPcopy Index your code
hub / github.com/csev/py4e / scrollCursorIntoView

Function scrollCursorIntoView

tools/pythonauto/static/codemirrorepl/codemirrorepl.js:1090–1094  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1088 if (rect.top < 0 || rect.bottom > winH) cursor.scrollIntoView();
1089 }
1090 function scrollCursorIntoView() {
1091 var cursor = localCoords(sel.inverted ? sel.from : sel.to);
1092 var x = options.lineWrapping ? Math.min(cursor.x, lineSpace.offsetWidth) : cursor.x;
1093 return scrollIntoView(x, cursor.y, x, cursor.yBot);
1094 }
1095 function scrollIntoView(x1, y1, x2, y2) {
1096 var pl = paddingLeft(), pt = paddingTop();
1097 y1 += pt; y2 += pt; x1 += pl; x2 += pl;

Callers 1

endOperationFunction · 0.70

Calls 2

localCoordsFunction · 0.85
scrollIntoViewFunction · 0.70

Tested by

no test coverage detected