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

Function setDocumentHeight

static/mergely/lib/codemirror.js:788–793  ·  view source on GitHub ↗
(cm, measure)

Source from the content-addressed store, hash-verified

786 }
787
788 function setDocumentHeight(cm, measure) {
789 cm.display.sizer.style.minHeight = measure.docHeight + "px";
790 var total = measure.docHeight + cm.display.barHeight;
791 cm.display.heightForcer.style.top = total + "px";
792 cm.display.gutters.style.height = Math.max(total + scrollGap(cm), measure.clientHeight) + "px";
793 }
794
795 // Read the actual heights of the rendered lines, and update their
796 // 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