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