aboutsummaryrefslogtreecommitdiff
path: root/js/src
diff options
context:
space:
mode:
authorDavid Bailey <[email protected]>2017-08-28 18:44:56 +0100
committerDavid Bailey <[email protected]>2017-08-28 18:44:56 +0100
commit2725acc9e576059e2dbb3e4722dd5beef84e9215 (patch)
treead0e3ff961667bc739841b4b6bbd7db54b289a31 /js/src
parenta4fff7c38397fa8fb59891cc94807be020ac37ec (diff)
downloadbootstrap-2725acc9e576059e2dbb3e4722dd5beef84e9215.tar.xz
bootstrap-2725acc9e576059e2dbb3e4722dd5beef84e9215.zip
Use jQuery outerWidth instead of offsetWidth
Diffstat (limited to 'js/src')
-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 a88c14444..c8c7e3d21 100644
--- a/js/src/modal.js
+++ b/js/src/modal.js
@@ -426,7 +426,7 @@ const Modal = (($) => {
}
_checkScrollbar() {
- this._isBodyOverflowing = document.body.offsetWidth < window.innerWidth
+ this._isBodyOverflowing = $('body').outerWidth(true) < window.innerWidth
this._scrollbarWidth = this._getScrollbarWidth()
}