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

Function scrollbarWidth

tools/pythonauto/static/codemirrorepl/codemirror.js:7095–7102  ·  view source on GitHub ↗
(measure)

Source from the content-addressed store, hash-verified

7093
7094 var knownScrollbarWidth;
7095 function scrollbarWidth(measure) {
7096 if (knownScrollbarWidth != null) return knownScrollbarWidth;
7097 var test = elt("div", null, null, "width: 50px; height: 50px; overflow-x: scroll");
7098 removeChildrenAndAdd(measure, test);
7099 if (test.offsetWidth)
7100 knownScrollbarWidth = test.offsetHeight - test.clientHeight;
7101 return knownScrollbarWidth || 0;
7102 }
7103
7104 var zwspSupported;
7105 function zeroWidthElement(measure) {

Callers 1

updateScrollbarsFunction · 0.70

Calls 2

eltFunction · 0.70
removeChildrenAndAddFunction · 0.70

Tested by

no test coverage detected