aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorChristopher Baker <[email protected]>2016-04-27 19:30:39 -0700
committerChristopher Baker <[email protected]>2016-04-27 19:30:39 -0700
commit859c12a04405fcc8d4fd89343fa680cf8d6c119e (patch)
tree61356c93251bab903a9af867ad7f585dde591b6e /js
parentbae54aa8fc22451bbb2c898dafb22d2f86d15e85 (diff)
parent1a6d0cc446259cf86d73bf7437f2ca3b095f6781 (diff)
downloadbootstrap-859c12a04405fcc8d4fd89343fa680cf8d6c119e.tar.xz
bootstrap-859c12a04405fcc8d4fd89343fa680cf8d6c119e.zip
Merge branch 'v4-dev' of github.com:twbs/bootstrap into v4-dev
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()
}