MCPcopy Create free account
hub / github.com/TruthHun/BookStack / updateDisplaySimple

Function updateDisplaySimple

static/mergely/lib/codemirror.js:775–786  ·  view source on GitHub ↗
(cm, viewport)

Source from the content-addressed store, hash-verified

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

Callers 2

setScrollTopFunction · 0.70
onScrollWheelFunction · 0.70

Calls 7

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

Tested by

no test coverage detected