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

Function displayWidth

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

Source from the content-addressed store, hash-verified

2420
2421 function scrollGap(cm) { return scrollerGap - cm.display.nativeBarWidth; }
2422 function displayWidth(cm) {
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 }

Callers 8

DisplayUpdateFunction · 0.70
postUpdateDisplayFunction · 0.70
drawSelectionRangeFunction · 0.70
ensureLineHeightsFunction · 0.70
endOperation_R2Function · 0.70
endOperation_finishFunction · 0.70
calculateScrollPosFunction · 0.70
codemirror.jsFile · 0.70

Calls 1

scrollGapFunction · 0.70

Tested by

no test coverage detected