diff options
Diffstat (limited to 'assets/javascripts/bootstrap')
-rw-r--r-- | assets/javascripts/bootstrap/modal.js | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/assets/javascripts/bootstrap/modal.js b/assets/javascripts/bootstrap/modal.js index 26cac98..af62dbd 100644 --- a/assets/javascripts/bootstrap/modal.js +++ b/assets/javascripts/bootstrap/modal.js @@ -410,13 +410,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(); } }, { |