MCPcopy
hub / github.com/csev/py4e / setDocumentHeight

Function setDocumentHeight

tools/pythonauto/static/codemirrorepl/codemirror.js:652–655  ·  view source on GitHub ↗
(cm, measure)

Source from the content-addressed store, hash-verified

650 }
651
652 function setDocumentHeight(cm, measure) {
653 cm.display.sizer.style.minHeight = cm.display.heightForcer.style.top = measure.docHeight + "px";
654 cm.display.gutters.style.height = Math.max(measure.docHeight, measure.clientHeight - scrollerCutOff) + "px";
655 }
656
657 // Read the actual heights of the rendered lines, and update their
658 // stored heights to match.

Callers 1

updateDisplayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected