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…
Add table
Add a link
Reference in a new issue