diff options
| author | Mark Otto <[email protected]> | 2016-05-08 13:43:13 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2016-05-08 13:43:13 -0700 |
| commit | 932d0aa06815b3ce0ff9b30c03ce486da6332709 (patch) | |
| tree | 403dd33b44473857081c645d4e9e1eb1cdff79cc /docs/dist/js/bootstrap.js | |
| parent | 5e84ed1425ce9a5e3a5f0c94ad5a86a2b11a5f85 (diff) | |
| download | bootstrap-932d0aa06815b3ce0ff9b30c03ce486da6332709.tar.xz bootstrap-932d0aa06815b3ce0ff9b30c03ce486da6332709.zip | |
grunt
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(); } }, { |
