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

Function setDocumentHeight

src/codemirror.js:791–795  ·  view source on GitHub ↗
(cm, measure)

Source from the content-addressed store, hash-verified

789 }
790
791 function setDocumentHeight(cm, measure) {
792 cm.display.sizer.style.minHeight = measure.docHeight + "px";
793 cm.display.heightForcer.style.top = measure.docHeight + "px";
794 cm.display.gutters.style.height = (measure.docHeight + cm.display.barHeight + scrollGap(cm)) + "px";
795 }
796
797 // Read the actual heights of the rendered lines, and update their
798 // stored heights to match.

Callers 3

postUpdateDisplayFunction · 0.85
updateDisplaySimpleFunction · 0.85
endOperation_W2Function · 0.85

Calls 1

scrollGapFunction · 0.85

Tested by

no test coverage detected