MCPcopy
hub / github.com/witheve/Eve / updateDisplaySimple

Function updateDisplaySimple

src/codemirror.js:778–789  ·  view source on GitHub ↗
(cm, viewport)

Source from the content-addressed store, hash-verified

776 }
777
778 function updateDisplaySimple(cm, viewport) {
779 var update = new DisplayUpdate(cm, viewport);
780 if (updateDisplayIfNeeded(cm, update)) {
781 updateHeightsInViewport(cm);
782 postUpdateDisplay(cm, update);
783 var barMeasure = measureForScrollbars(cm);
784 updateSelection(cm);
785 updateScrollbars(cm, barMeasure);
786 setDocumentHeight(cm, barMeasure);
787 update.finish();
788 }
789 }
790
791 function setDocumentHeight(cm, measure) {
792 cm.display.sizer.style.minHeight = measure.docHeight + "px";

Callers 2

setScrollTopFunction · 0.85
onScrollWheelFunction · 0.85

Calls 7

updateDisplayIfNeededFunction · 0.85
updateHeightsInViewportFunction · 0.85
postUpdateDisplayFunction · 0.85
measureForScrollbarsFunction · 0.85
updateSelectionFunction · 0.85
updateScrollbarsFunction · 0.85
setDocumentHeightFunction · 0.85

Tested by

no test coverage detected