MCPcopy
hub / github.com/csev/py4e / paddingH

Function paddingH

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

Source from the content-addressed store, hash-verified

1439 function paddingTop(display) {return display.lineSpace.offsetTop;}
1440 function paddingVert(display) {return display.mover.offsetHeight - display.lineSpace.offsetHeight;}
1441 function paddingH(display) {
1442 if (display.cachedPaddingH) return display.cachedPaddingH;
1443 var e = removeChildrenAndAdd(display.measure, elt("pre", "x"));
1444 var style = window.getComputedStyle ? window.getComputedStyle(e) : e.currentStyle;
1445 return display.cachedPaddingH = {left: parseInt(style.paddingLeft),
1446 right: parseInt(style.paddingRight)};
1447 }
1448
1449 // Ensure the lineView.wrapping.heights array is populated. This is
1450 // an array of bottom offsets for the lines that make up a drawn

Callers 2

drawSelectionRangeFunction · 0.70
posFromMouseFunction · 0.70

Calls 2

removeChildrenAndAddFunction · 0.70
eltFunction · 0.70

Tested by

no test coverage detected