From f6a7b7bf41ea628b61693597be299c4257f93079 Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Mon, 16 May 2016 23:19:31 +0100 Subject: rake update[v4-dev] --- assets/javascripts/bootstrap/modal.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'assets/javascripts/bootstrap') 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(); } }, { -- cgit v1.2.3