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

Function setDocumentHeight

static/editor.md/lib/codemirror/lib/codemirror.js:771–776  ·  view source on GitHub ↗
(cm, measure)

Source from the content-addressed store, hash-verified

769 }
770
771 function setDocumentHeight(cm, measure) {
772 cm.display.sizer.style.minHeight = measure.docHeight + "px";
773 var total = measure.docHeight + cm.display.barHeight;
774 cm.display.heightForcer.style.top = total + "px";
775 cm.display.gutters.style.height = Math.max(total + scrollGap(cm), measure.clientHeight) + "px";
776 }
777
778 // Read the actual heights of the rendered lines, and update their
779 // stored heights to match.

Callers 3

postUpdateDisplayFunction · 0.70
updateDisplaySimpleFunction · 0.70
endOperation_W2Function · 0.70

Calls 1

scrollGapFunction · 0.70

Tested by

no test coverage detected