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

github.com/twbs/bootstrap-rubygem.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Mazovetskiy <glex.spb@gmail.com>2016-05-17 01:19:31 +0300
committerGleb Mazovetskiy <glex.spb@gmail.com>2016-05-17 01:19:31 +0300
commitf6a7b7bf41ea628b61693597be299c4257f93079 (patch)
treef4069a43a528fcd6b405f0e1a06133f2eddeabbe /assets/javascripts/bootstrap
parente39dac2c6684e478a6ace2f50259b29dcce781ea (diff)
rake update[v4-dev]
Diffstat (limited to 'assets/javascripts/bootstrap')
-rw-r--r--assets/javascripts/bootstrap/modal.js8
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();
}
}, {