MCPcopy
hub / github.com/csev/py4e / updateViewOffset

Function updateViewOffset

tools/pythonauto/static/codemirror/codemirror.js:577–581  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

575 }
576
577 function updateViewOffset(cm) {
578 var off = cm.display.viewOffset = heightAtLine(cm, getLine(cm.doc, cm.display.showingFrom));
579 // Position the mover div to align with the current virtual scroll position
580 cm.display.mover.style.top = off + "px";
581 }
582
583 function computeIntact(intact, changes) {
584 for (var i = 0, l = changes.length || 0; i < l; ++i) {

Callers 1

updateDisplayInnerFunction · 0.85

Calls 2

heightAtLineFunction · 0.70
getLineFunction · 0.70

Tested by

no test coverage detected