MCPcopy Create free account
hub / github.com/breck7/scroll / setDocumentHeight

Function setDocumentHeight

external/.scrollLibs.js:6099–6103  ·  view source on GitHub ↗
(cm, measure)

Source from the content-addressed store, hash-verified

6097 }
6098
6099 function setDocumentHeight(cm, measure) {
6100 cm.display.sizer.style.minHeight = measure.docHeight + "px"
6101 cm.display.heightForcer.style.top = measure.docHeight + "px"
6102 cm.display.gutters.style.height = measure.docHeight + cm.display.barHeight + scrollGap(cm) + "px"
6103 }
6104
6105 // Rebuild the gutter elements, ensure the margin to the left of the
6106 // code matches their width.

Callers 3

endOperation_W2Function · 0.85
postUpdateDisplayFunction · 0.85
updateDisplaySimpleFunction · 0.85

Calls 1

scrollGapFunction · 0.85

Tested by

no test coverage detected