diff options
author | Gleb Mazovetskiy <glex.spb@gmail.com> | 2016-05-17 01:19:31 +0300 |
---|---|---|
committer | Gleb Mazovetskiy <glex.spb@gmail.com> | 2016-05-17 01:19:31 +0300 |
commit | f6a7b7bf41ea628b61693597be299c4257f93079 (patch) | |
tree | f4069a43a528fcd6b405f0e1a06133f2eddeabbe /assets/javascripts/bootstrap | |
parent | e39dac2c6684e478a6ace2f50259b29dcce781ea (diff) |
rake update[v4-dev]
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(); } }, { |