diff options
author | David Bailey <techdavid@users.noreply.github.com> | 2017-08-28 20:35:47 +0300 |
---|---|---|
committer | David Bailey <techdavid@users.noreply.github.com> | 2017-08-28 20:35:47 +0300 |
commit | a4fff7c38397fa8fb59891cc94807be020ac37ec (patch) | |
tree | 2bfc9abb54bd94ad6bf650268bdc06a3a25404dc /js/src/modal.js | |
parent | 487513ff03b3d63ad3b3fe641dae2a3882d5ded5 (diff) |
Fix unwanted body padding when a modal opens
Prevents the test from failing
Diffstat (limited to 'js/src/modal.js')
-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 ab73230c8f..a88c144447 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() } |