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
path: root/js
diff options
context:
space:
mode:
authorGiovanni Mendoza <mendozagioo@gmail.com>2020-01-14 03:42:22 +0300
committerXhmikosR <xhmikosr@gmail.com>2020-05-12 07:51:09 +0300
commit3e7566f2c3f0d7dff368e16c0427a13900f3cf84 (patch)
treed7e73a663d614c1b6e5d3d136254b78176ee05e8 /js
parenta22e2900f99a71d182f31f9fad7cd86e608cbe94 (diff)
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 0daa428a8d..af396b56cf 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()
}