diff options
| author | David Bailey <[email protected]> | 2017-08-28 18:44:56 +0100 |
|---|---|---|
| committer | David Bailey <[email protected]> | 2017-08-28 18:44:56 +0100 |
| commit | 2725acc9e576059e2dbb3e4722dd5beef84e9215 (patch) | |
| tree | ad0e3ff961667bc739841b4b6bbd7db54b289a31 /js/src | |
| parent | a4fff7c38397fa8fb59891cc94807be020ac37ec (diff) | |
| download | bootstrap-2725acc9e576059e2dbb3e4722dd5beef84e9215.tar.xz bootstrap-2725acc9e576059e2dbb3e4722dd5beef84e9215.zip | |
Use jQuery outerWidth instead of offsetWidth
Diffstat (limited to 'js/src')
| -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 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() } |
