aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorGiovanni Mendoza <[email protected]>2020-01-13 18:42:22 -0600
committerXhmikosR <[email protected]>2020-05-12 07:51:09 +0300
commit3e7566f2c3f0d7dff368e16c0427a13900f3cf84 (patch)
treed7e73a663d614c1b6e5d3d136254b78176ee05e8 /js
parenta22e2900f99a71d182f31f9fad7cd86e608cbe94 (diff)
downloadbootstrap-3e7566f2c3f0d7dff368e16c0427a13900f3cf84.tar.xz
bootstrap-3e7566f2c3f0d7dff368e16c0427a13900f3cf84.zip
Avoid bad scrollbar replacement into width values
Diffstat (limited to '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 0daa428a8..af396b56c 100644
--- a/js/src/modal.js
+++ b/js/src/modal.js
@@ -443,7 +443,7 @@ class Modal {
_checkScrollbar() {
const rect = document.body.getBoundingClientRect()
- this._isBodyOverflowing = rect.left + rect.right < window.innerWidth
+ this._isBodyOverflowing = Math.round(rect.left + rect.right) < window.innerWidth
this._scrollbarWidth = this._getScrollbarWidth()
}