aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/src/modal.js8
1 files changed, 1 insertions, 7 deletions
diff --git a/js/src/modal.js b/js/src/modal.js
index 202c5fe94..e2365aca7 100644
--- a/js/src/modal.js
+++ b/js/src/modal.js
@@ -408,13 +408,7 @@ const Modal = (($) => {
}
_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()
}