diff options
| author | David Bailey <[email protected]> | 2017-08-28 18:35:47 +0100 |
|---|---|---|
| committer | David Bailey <[email protected]> | 2017-08-28 18:35:47 +0100 |
| commit | a4fff7c38397fa8fb59891cc94807be020ac37ec (patch) | |
| tree | 2bfc9abb54bd94ad6bf650268bdc06a3a25404dc | |
| parent | 487513ff03b3d63ad3b3fe641dae2a3882d5ded5 (diff) | |
| download | bootstrap-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.js | 2 |
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() } |
