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:
authorXhmikosR <xhmikosr@gmail.com>2020-05-06 17:43:51 +0300
committerJohann-S <johann.servoire@gmail.com>2020-05-06 22:25:59 +0300
commit737b6925ab64b431d47b24ed1bb3c450143872d1 (patch)
tree06668a1444c1ddc22a45a28e06cc3a9eacc79bf4 /js
parentc380aeb751742a01c657b8978152f42dcd42efdd (diff)
Revert "Avoid bad scrollbar replacement into width values (#30690)"
This reverts commit 85c4788dedfdec7d681829e3a52ada0c33f8fa8e.
Diffstat (limited to 'js')
-rw-r--r--js/src/modal.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/js/src/modal.js b/js/src/modal.js
index 19561122ff..0daa428a8d 100644
--- a/js/src/modal.js
+++ b/js/src/modal.js
@@ -442,9 +442,8 @@ class Modal {
}
_checkScrollbar() {
- const { left, right } = document.body.getBoundingClientRect()
-
- this._isBodyOverflowing = Math.floor(left + right) < window.innerWidth
+ const rect = document.body.getBoundingClientRect()
+ this._isBodyOverflowing = rect.left + rect.right < window.innerWidth
this._scrollbarWidth = this._getScrollbarWidth()
}