}
_checkScrollbar() {
- let fullWindowWidth = window.innerWidth
- if (!fullWindowWidth) { // workaround for missing window.innerWidth in IE8
- let documentElementRect = document.documentElement.getBoundingClientRect()
- fullWindowWidth =
- documentElementRect.right - Math.abs(documentElementRect.left)
- }
- this._isBodyOverflowing = document.body.clientWidth < fullWindowWidth
+ this._isBodyOverflowing = document.body.clientWidth < window.innerWidth
this._scrollbarWidth = this._getScrollbarWidth()
}