MCPcopy Index your code
hub / github.com/witheve/Eve / compensateForHScroll

Function compensateForHScroll

src/codemirror.js:633–635  ·  view source on GitHub ↗
(display)

Source from the content-addressed store, hash-verified

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

Callers 3

alignHorizontallyFunction · 0.85
getDimensionsFunction · 0.85
codemirror.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected