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

Function scrollbarWidth

tools/pythonauto/static/codemirror/codemirror.js:5738–5745  ·  view source on GitHub ↗
(measure)

Source from the content-addressed store, hash-verified

5736
5737 var knownScrollbarWidth;
5738 function scrollbarWidth(measure) {
5739 if (knownScrollbarWidth != null) return knownScrollbarWidth;
5740 var test = elt("div", null, null, "width: 50px; height: 50px; overflow-x: scroll");
5741 removeChildrenAndAdd(measure, test);
5742 if (test.offsetWidth)
5743 knownScrollbarWidth = test.offsetHeight - test.clientHeight;
5744 return knownScrollbarWidth || 0;
5745 }
5746
5747 var zwspSupported;
5748 function zeroWidthElement(measure) {

Callers 1

updateScrollbarsFunction · 0.70

Calls 2

eltFunction · 0.70
removeChildrenAndAddFunction · 0.70

Tested by

no test coverage detected