(measure)
| 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) { |
no test coverage detected