0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-01 13:24:25 +01:00

Use jQuery outerWidth instead of offsetWidth

This commit is contained in:
David Bailey 2017-08-28 18:44:56 +01:00
parent a4fff7c383
commit 2725acc9e5

View File

@ -426,7 +426,7 @@ const Modal = (($) => {
}
_checkScrollbar() {
this._isBodyOverflowing = document.body.offsetWidth < window.innerWidth
this._isBodyOverflowing = $('body').outerWidth(true) < window.innerWidth
this._scrollbarWidth = this._getScrollbarWidth()
}