Skip to content

Commit

Permalink
automatic grunt dist
Browse files Browse the repository at this point in the history
  • Loading branch information
twbs-grunt committed Feb 24, 2015
1 parent 16479e9 commit 1cbbeef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion dist/js/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

Expand Down
Loading

0 comments on commit 1cbbeef

Please sign in to comment.