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

Function displayHeight

static/editor.md/lib/codemirror/lib/codemirror.js:2425–2427  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

2423 return cm.display.scroller.clientWidth - scrollGap(cm) - cm.display.barWidth;
2424 }
2425 function displayHeight(cm) {
2426 return cm.display.scroller.clientHeight - scrollGap(cm) - cm.display.barHeight;
2427 }
2428
2429 // Ensure the lineView.wrapping.heights array is populated. This is
2430 // an array of bottom offsets for the lines that make up a drawn

Callers 3

postUpdateDisplayFunction · 0.70
calculateScrollPosFunction · 0.70
codemirror.jsFile · 0.70

Calls 1

scrollGapFunction · 0.70

Tested by

no test coverage detected