mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-17 19:21:23 +03:00
Fix unwanted body padding when a modal opens
Prevents the test from failing
This commit is contained in:
+1
-1
@@ -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()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user