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/src
diff options
context:
space:
mode:
authorGiovanni Mendoza <mendozagioo@gmail.com>2020-01-14 03:42:22 +0300
committerXhmikosR <xhmikosr@gmail.com>2020-05-12 19:21:36 +0300
commitf1827ce9cd54e835069f5d58843925df2a4b03c0 (patch)
treee3f073b41fb9c9fbe1582a702ea0e3efe05c667e /js/src
parenteb1df3e07915fc77fd0f1250efa5588f3bd0f30f (diff)
Avoid bad scrollbar replacement into width values
Refs #30772
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 5dc7cd3938..309d6d73ac 100644
--- a/js/src/modal.js
+++ b/js/src/modal.js
@@ -455,7 +455,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()
}