Buckets:
| import canUseDOM from './canUseDOM'; | |
| var size; | |
| export default function scrollbarSize(recalc) { | |
| if (!size && size !== 0 || recalc) { | |
| if (canUseDOM) { | |
| var scrollDiv = document.createElement('div'); | |
| scrollDiv.style.position = 'absolute'; | |
| scrollDiv.style.top = '-9999px'; | |
| scrollDiv.style.width = '50px'; | |
| scrollDiv.style.height = '50px'; | |
| scrollDiv.style.overflow = 'scroll'; | |
| document.body.appendChild(scrollDiv); | |
| size = scrollDiv.offsetWidth - scrollDiv.clientWidth; | |
| document.body.removeChild(scrollDiv); | |
| } | |
| } | |
| return size; | |
| } |
Xet Storage Details
- Size:
- 587 Bytes
- Xet hash:
- 35e40e8abab464450ac6acbf50eae3560ad563c280c23ed78c18c8a9f44743a9
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.