MCPcopy Create free account
hub / github.com/sql-js/sql.js / compensateForHScroll

Function compensateForHScroll

GUI/codemirror/lib/codemirror.js:525–527  ·  view source on GitHub ↗
(display)

Source from the content-addressed store, hash-verified

523 // but using getBoundingClientRect to get a sub-pixel-accurate
524 // result.
525 function compensateForHScroll(display) {
526 return display.scroller.getBoundingClientRect().left - display.sizer.getBoundingClientRect().left;
527 }
528
529 // DISPLAY DRAWING
530

Callers 3

alignHorizontallyFunction · 0.85
getDimensionsFunction · 0.85
codemirror.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…