aboutsummaryrefslogtreecommitdiff
path: root/docs/dist/js/bootstrap.js
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2016-04-23 14:24:08 -0700
committerMark Otto <[email protected]>2016-04-23 14:24:08 -0700
commit9f2ab98026cd1df4c74cdad1aa03d2931f979f91 (patch)
tree10b02fa770aa10535d82df91bbd7d4bafe258cfa /docs/dist/js/bootstrap.js
parent29ff8e8b1449887b0e07bd9e19befb0ce1e1cb81 (diff)
parent1a6d0cc446259cf86d73bf7437f2ca3b095f6781 (diff)
downloadbootstrap-9f2ab98026cd1df4c74cdad1aa03d2931f979f91.tar.xz
bootstrap-9f2ab98026cd1df4c74cdad1aa03d2931f979f91.zip
Merge branch 'v4-dev' into v4-forms-cleanup
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();
}
}, {