MCPcopy Index your code
hub / github.com/csev/py4e / compensateForHScroll

Function compensateForHScroll

tools/pythonauto/static/codemirrorepl/codemirror.js:522–524  ·  view source on GitHub ↗
(display)

Source from the content-addressed store, hash-verified

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

Callers 3

alignHorizontallyFunction · 0.70
getDimensionsFunction · 0.70
codemirror.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected