From 1cbbeef47c696fc4f389cd0df900cf6213ed327d Mon Sep 17 00:00:00 2001 From: Bootstrap's Grunt bot Date: Tue, 24 Feb 2015 02:41:30 +0000 Subject: automatic grunt dist --- dist/js/bootstrap.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'dist/js/bootstrap.js') diff --git a/dist/js/bootstrap.js b/dist/js/bootstrap.js index 5430993de..5a11cc20d 100644 --- a/dist/js/bootstrap.js +++ b/dist/js/bootstrap.js @@ -1150,7 +1150,12 @@ if (typeof jQuery === 'undefined') { } Modal.prototype.checkScrollbar = function () { - this.bodyIsOverflowing = document.body.scrollHeight > document.documentElement.clientHeight + 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.bodyIsOverflowing = document.body.clientWidth < fullWindowWidth this.scrollbarWidth = this.measureScrollbar() } -- cgit v1.2.3