mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-12 16:44:17 +02:00
Use jQuery outerWidth instead of offsetWidth
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user