MCPcopy
hub / github.com/witheve/Eve / displayWidth

Function displayWidth

src/codemirror.js:2534–2536  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

2532
2533 function scrollGap(cm) { return scrollerGap - cm.display.nativeBarWidth; }
2534 function displayWidth(cm) {
2535 return cm.display.scroller.clientWidth - scrollGap(cm) - cm.display.barWidth;
2536 }
2537 function displayHeight(cm) {
2538 return cm.display.scroller.clientHeight - scrollGap(cm) - cm.display.barHeight;
2539 }

Callers 7

DisplayUpdateFunction · 0.85
postUpdateDisplayFunction · 0.85
drawSelectionRangeFunction · 0.85
ensureLineHeightsFunction · 0.85
endOperation_R2Function · 0.85
calculateScrollPosFunction · 0.85
codemirror.jsFile · 0.85

Calls 1

scrollGapFunction · 0.85

Tested by

no test coverage detected