2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-05-15 11:59:39 +03:00

automatic grunt dist

This commit is contained in:
Bootstrap's Grunt bot
2015-02-24 02:41:30 +00:00
parent 16479e9051
commit 1cbbeef47c
2 changed files with 8 additions and 3 deletions
+6 -1
View File
@@ -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()
}
+2 -2
View File
File diff suppressed because one or more lines are too long