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

Function compensateForHScroll

static/mergely/lib/codemirror.js:631–633  ·  view source on GitHub ↗
(display)

Source from the content-addressed store, hash-verified

629 // but using getBoundingClientRect to get a sub-pixel-accurate
630 // result.
631 function compensateForHScroll(display) {
632 return display.scroller.getBoundingClientRect().left - display.sizer.getBoundingClientRect().left;
633 }
634
635 // DISPLAY DRAWING
636

Callers 3

alignHorizontallyFunction · 0.70
getDimensionsFunction · 0.70
codemirror.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected