(measure)
| 5052 | |
| 5053 | var knownScrollbarWidth; |
| 5054 | function scrollbarWidth(measure) { |
| 5055 | if (knownScrollbarWidth != null) return knownScrollbarWidth; |
| 5056 | var test = elt("div", null, null, "width: 50px; height: 50px; overflow-x: scroll"); |
| 5057 | removeChildrenAndAdd(measure, test); |
| 5058 | if (test.offsetWidth) |
| 5059 | knownScrollbarWidth = test.offsetHeight - test.clientHeight; |
| 5060 | return knownScrollbarWidth || 0; |
| 5061 | } |
| 5062 | |
| 5063 | var zwspSupported; |
| 5064 | function zeroWidthElement(measure) { |
no test coverage detected