Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <markdotto@gmail.com>2016-05-08 23:43:13 +0300
committerMark Otto <markdotto@gmail.com>2016-05-08 23:43:13 +0300
commit932d0aa06815b3ce0ff9b30c03ce486da6332709 (patch)
tree403dd33b44473857081c645d4e9e1eb1cdff79cc /js/dist/modal.js
parent5e84ed1425ce9a5e3a5f0c94ad5a86a2b11a5f85 (diff)
grunt
Diffstat (limited to 'js/dist/modal.js')
-rw-r--r--js/dist/modal.js8
1 files changed, 1 insertions, 7 deletions
diff --git a/js/dist/modal.js b/js/dist/modal.js
index b600103535..84cf9835ec 100644
--- a/js/dist/modal.js
+++ b/js/dist/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();
}
}, {