Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Bailey <techdavid@users.noreply.github.com>2017-08-28 20:35:47 +0300
committerDavid Bailey <techdavid@users.noreply.github.com>2017-08-28 20:35:47 +0300
commita4fff7c38397fa8fb59891cc94807be020ac37ec (patch)
tree2bfc9abb54bd94ad6bf650268bdc06a3a25404dc /js/src/modal.js
parent487513ff03b3d63ad3b3fe641dae2a3882d5ded5 (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.js2
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()
}