MCPcopy Index your code
hub / github.com/DHTMLX/gantt / compensateForHScroll

Function compensateForHScroll

samples/common/codehighlight/codemirror.js:2919–2921  ·  view source on GitHub ↗
(display)

Source from the content-addressed store, hash-verified

2917 // but using getBoundingClientRect to get a sub-pixel-accurate
2918 // result.
2919 function compensateForHScroll(display) {
2920 return display.scroller.getBoundingClientRect().left - display.sizer.getBoundingClientRect().left
2921 }
2922
2923 // Returns a function that estimates the height of a line, to use as
2924 // first approximation until the line becomes visible (and is thus

Callers 3

getDimensionsFunction · 0.85
alignHorizontallyFunction · 0.85
defineOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected