MCPcopy Index your code
hub / github.com/ronreiter/interactive-tutorials / updateViewOffset

Function updateViewOffset

static/js/codemirror/codemirror.js:525–529  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

523 }
524
525 function updateViewOffset(cm) {
526 var off = cm.display.viewOffset = heightAtLine(cm, getLine(cm.doc, cm.display.showingFrom));
527 // Position the mover div to align with the current virtual scroll position
528 cm.display.mover.style.top = off + "px";
529 }
530
531 function computeIntact(intact, changes) {
532 for (var i = 0, l = changes.length || 0; i < l; ++i) {

Callers 1

updateDisplayInnerFunction · 0.85

Calls 2

heightAtLineFunction · 0.85
getLineFunction · 0.85

Tested by

no test coverage detected