(recalc)
| 1344 | var size; |
| 1345 | |
| 1346 | function scrollbarSize(recalc) { |
| 1347 | if (!size && size !== 0 || recalc) { |
| 1348 | if (_inDOM.default) { |
| 1349 | var scrollDiv = document.createElement('div'); |
| 1350 | scrollDiv.style.position = 'absolute'; |
| 1351 | scrollDiv.style.top = '-9999px'; |
| 1352 | scrollDiv.style.width = '50px'; |
| 1353 | scrollDiv.style.height = '50px'; |
| 1354 | scrollDiv.style.overflow = 'scroll'; |
| 1355 | document.body.appendChild(scrollDiv); |
| 1356 | size = scrollDiv.offsetWidth - scrollDiv.clientWidth; |
| 1357 | document.body.removeChild(scrollDiv); |
| 1358 | } |
| 1359 | } |
| 1360 | |
| 1361 | return size; |
| 1362 | } |
| 1363 | |
| 1364 | module.exports = exports["default"]; |
| 1365 |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…