From 932d0aa06815b3ce0ff9b30c03ce486da6332709 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 8 May 2016 13:43:13 -0700 Subject: grunt --- js/dist/modal.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'js/dist/modal.js') 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(); } }, { -- cgit v1.2.3