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

Function paddingH

tools/pythonauto/static/codemirror/codemirror.js:989–995  ·  view source on GitHub ↗
(display)

Source from the content-addressed store, hash-verified

987 function paddingTop(display) {return display.lineSpace.offsetTop;}
988 function paddingVert(display) {return display.mover.offsetHeight - display.lineSpace.offsetHeight;}
989 function paddingH(display) {
990 if (display.cachedPaddingH) return display.cachedPaddingH;
991 var e = removeChildrenAndAdd(display.measure, elt("pre", "x"));
992 var style = window.getComputedStyle ? window.getComputedStyle(e) : e.currentStyle;
993 return display.cachedPaddingH = {left: parseInt(style.paddingLeft),
994 right: parseInt(style.paddingRight)};
995 }
996
997 function measureChar(cm, line, ch, data, bias) {
998 var dir = -1;

Callers 1

updateSelectionRangeFunction · 0.70

Calls 2

removeChildrenAndAddFunction · 0.70
eltFunction · 0.70

Tested by

no test coverage detected