MCPcopy Index your code
hub / github.com/DHTMLX/gantt / setDocumentHeight

Function setDocumentHeight

samples/common/codehighlight/codemirror.js:4243–4247  ·  view source on GitHub ↗
(cm, measure)

Source from the content-addressed store, hash-verified

4241 }
4242
4243 function setDocumentHeight(cm, measure) {
4244 cm.display.sizer.style.minHeight = measure.docHeight + "px";
4245 cm.display.heightForcer.style.top = measure.docHeight + "px";
4246 cm.display.gutters.style.height = (measure.docHeight + cm.display.barHeight + scrollGap(cm)) + "px";
4247 }
4248
4249 // Re-align line numbers and gutter marks to compensate for
4250 // horizontal scrolling.

Callers 3

endOperation_W2Function · 0.85
postUpdateDisplayFunction · 0.85
updateDisplaySimpleFunction · 0.85

Calls 1

scrollGapFunction · 0.85

Tested by

no test coverage detected