aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Bailey <[email protected]>2017-08-28 18:35:47 +0100
committerDavid Bailey <[email protected]>2017-08-28 18:35:47 +0100
commita4fff7c38397fa8fb59891cc94807be020ac37ec (patch)
tree2bfc9abb54bd94ad6bf650268bdc06a3a25404dc
parent487513ff03b3d63ad3b3fe641dae2a3882d5ded5 (diff)
downloadbootstrap-a4fff7c38397fa8fb59891cc94807be020ac37ec.tar.xz
bootstrap-a4fff7c38397fa8fb59891cc94807be020ac37ec.zip
Fix unwanted body padding when a modal opens
Prevents the test from failing
-rw-r--r--js/src/modal.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/modal.js b/js/src/modal.js
index ab73230c8..a88c14444 100644
--- a/js/src/modal.js
+++ b/js/src/modal.js
@@ -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()
}