aboutsummaryrefslogtreecommitdiff
path: root/docs/dist/js/bootstrap.js
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2016-05-08 13:43:13 -0700
committerMark Otto <[email protected]>2016-05-08 13:43:13 -0700
commit932d0aa06815b3ce0ff9b30c03ce486da6332709 (patch)
tree403dd33b44473857081c645d4e9e1eb1cdff79cc /docs/dist/js/bootstrap.js
parent5e84ed1425ce9a5e3a5f0c94ad5a86a2b11a5f85 (diff)
downloadbootstrap-932d0aa06815b3ce0ff9b30c03ce486da6332709.tar.xz
bootstrap-932d0aa06815b3ce0ff9b30c03ce486da6332709.zip
grunt
Diffstat (limited to 'docs/dist/js/bootstrap.js')
-rw-r--r--docs/dist/js/bootstrap.js8
1 files changed, 1 insertions, 7 deletions
diff --git a/docs/dist/js/bootstrap.js b/docs/dist/js/bootstrap.js
index 2b5823a20..e335cb484 100644
--- a/docs/dist/js/bootstrap.js
+++ b/docs/dist/js/bootstrap.js
@@ -2062,13 +2062,7 @@ var Modal = (function ($) {
}, {
key: '_checkScrollbar',
value: function _checkScrollbar() {
- var fullWindowWidth = window.innerWidth;
- if (!fullWindowWidth) {
- // workaround for missing window.innerWidth in IE8
- var 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();
}
}, {