mirror of https://github.com/twbs/bootstrap.git
Fix unwanted body padding when a modal opens
Prevents the test from failing
This commit is contained in:
parent
487513ff03
commit
a4fff7c383
|
|
@ -426,7 +426,7 @@ const Modal = (($) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
_checkScrollbar() {
|
_checkScrollbar() {
|
||||||
this._isBodyOverflowing = document.body.clientWidth < window.innerWidth
|
this._isBodyOverflowing = document.body.offsetWidth < window.innerWidth
|
||||||
this._scrollbarWidth = this._getScrollbarWidth()
|
this._scrollbarWidth = this._getScrollbarWidth()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue