1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-26 06:44:35 +02:00

Merge branch 'v4-dev' into fix-jumping-modal-on-resize

This commit is contained in:
Johann-S
2017-09-03 12:56:04 +02:00
committed by GitHub
28 changed files with 276 additions and 95 deletions

View File

@@ -1,3 +1,4 @@
import $ from 'jquery'
import Util from './util'
@@ -8,7 +9,7 @@ import Util from './util'
* --------------------------------------------------------------------------
*/
const Modal = (($) => {
const Modal = (() => {
/**
@@ -428,7 +429,8 @@ const Modal = (($) => {
}
_checkScrollbar() {
this._isBodyOverflowing = document.body.clientWidth < window.innerWidth
const rect = document.body.getBoundingClientRect()
this._isBodyOverflowing = rect.left + rect.right < window.innerWidth
this._scrollbarWidth = this._getScrollbarWidth()
}