MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / paddingTop

Function paddingTop

static/js/codemirror/codemirror.js:933–933  ·  view source on GitHub ↗
(display)

Source from the content-addressed store, hash-verified

931 // POSITION MEASUREMENT
932
933 function paddingTop(display) {return display.lineSpace.offsetTop;}
934 function paddingLeft(display) {
935 var e = removeChildrenAndAdd(display.measure, elt("pre", null, null, "text-align: left")).appendChild(elt("span", "x"));
936 return e.offsetLeft;

Callers 4

updateScrollbarsFunction · 0.85
visibleLinesFunction · 0.85
calculateScrollPosFunction · 0.85
codemirror.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected