mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-04-09 23:40:58 +00:00
Use jQuery outerWidth instead of offsetWidth
This commit is contained in:
parent
a4fff7c383
commit
2725acc9e5
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue