diff options
| author | Mark Otto <[email protected]> | 2016-04-23 14:24:08 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2016-04-23 14:24:08 -0700 |
| commit | 9f2ab98026cd1df4c74cdad1aa03d2931f979f91 (patch) | |
| tree | 10b02fa770aa10535d82df91bbd7d4bafe258cfa /docs/dist/js/bootstrap.js | |
| parent | 29ff8e8b1449887b0e07bd9e19befb0ce1e1cb81 (diff) | |
| parent | 1a6d0cc446259cf86d73bf7437f2ca3b095f6781 (diff) | |
| download | bootstrap-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.js | 8 |
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(); } }, { |
