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

Function paddingH

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

Source from the content-addressed store, hash-verified

2299 function paddingTop(display) {return display.lineSpace.offsetTop}
2300 function paddingVert(display) {return display.mover.offsetHeight - display.lineSpace.offsetHeight}
2301 function paddingH(display) {
2302 if (display.cachedPaddingH) { return display.cachedPaddingH }
2303 var e = removeChildrenAndAdd(display.measure, elt("pre", "x", "CodeMirror-line-like"));
2304 var style = window.getComputedStyle ? window.getComputedStyle(e) : e.currentStyle;
2305 var data = {left: parseInt(style.paddingLeft), right: parseInt(style.paddingRight)};
2306 if (!isNaN(data.left) && !isNaN(data.right)) { display.cachedPaddingH = data; }
2307 return data
2308 }
2309
2310 function scrollGap(cm) { return scrollerGap - cm.display.nativeBarWidth }
2311 function displayWidth(cm) {

Callers 2

posFromMouseFunction · 0.85
drawSelectionRangeFunction · 0.85

Calls 2

removeChildrenAndAddFunction · 0.85
eltFunction · 0.85

Tested by

no test coverage detected