2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-05-18 12:39:41 +03:00

Fix unwanted body padding when a modal opens

Prevents the test from failing
This commit is contained in:
David Bailey
2017-08-28 18:35:47 +01:00
parent 487513ff03
commit a4fff7c383
+1 -1
View File
@@ -426,7 +426,7 @@ const Modal = (($) => {
}
_checkScrollbar() {
this._isBodyOverflowing = document.body.clientWidth < window.innerWidth
this._isBodyOverflowing = document.body.offsetWidth < window.innerWidth
this._scrollbarWidth = this._getScrollbarWidth()
}