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

Function updateDisplaySimple

static/editor.md/lib/codemirror/lib/codemirror.js:758–769  ·  view source on GitHub ↗
(cm, viewport)

Source from the content-addressed store, hash-verified

756 }
757
758 function updateDisplaySimple(cm, viewport) {
759 var update = new DisplayUpdate(cm, viewport);
760 if (updateDisplayIfNeeded(cm, update)) {
761 updateHeightsInViewport(cm);
762 postUpdateDisplay(cm, update);
763 var barMeasure = measureForScrollbars(cm);
764 updateSelection(cm);
765 setDocumentHeight(cm, barMeasure);
766 updateScrollbars(cm, barMeasure);
767 update.finish();
768 }
769 }
770
771 function setDocumentHeight(cm, measure) {
772 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