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

Function scrollIntoView

tools/pythonauto/static/codemirror/codemirror.js:2717–2721  ·  view source on GitHub ↗
(cm, x1, y1, x2, y2)

Source from the content-addressed store, hash-verified

2715 }
2716
2717 function scrollIntoView(cm, x1, y1, x2, y2) {
2718 var scrollPos = calculateScrollPos(cm, x1, y1, x2, y2);
2719 if (scrollPos.scrollTop != null) setScrollTop(cm, scrollPos.scrollTop);
2720 if (scrollPos.scrollLeft != null) setScrollLeft(cm, scrollPos.scrollLeft);
2721 }
2722
2723 function calculateScrollPos(cm, x1, y1, x2, y2) {
2724 var display = cm.display, snapMargin = textHeight(cm.display);

Callers 1

codemirror.jsFile · 0.70

Calls 3

calculateScrollPosFunction · 0.70
setScrollTopFunction · 0.70
setScrollLeftFunction · 0.70

Tested by

no test coverage detected