MCPcopy Create free account
hub / github.com/breck7/scroll / displayWidth

Function displayWidth

external/.scrollLibs.js:3572–3574  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

3570 return scrollerGap - cm.display.nativeBarWidth
3571 }
3572 function displayWidth(cm) {
3573 return cm.display.scroller.clientWidth - scrollGap(cm) - cm.display.barWidth
3574 }
3575 function displayHeight(cm) {
3576 return cm.display.scroller.clientHeight - scrollGap(cm) - cm.display.barHeight
3577 }

Callers 7

ensureLineHeightsFunction · 0.85
drawSelectionRangeFunction · 0.85
calculateScrollPosFunction · 0.85
endOperation_R2Function · 0.85
DisplayUpdateFunction · 0.85
postUpdateDisplayFunction · 0.85
addEditorMethodsFunction · 0.85

Calls 1

scrollGapFunction · 0.85

Tested by

no test coverage detected