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:
authorXhmikosR <xhmikosr@gmail.com>2020-05-06 18:14:10 +0300
committerXhmikosR <xhmikosr@gmail.com>2020-05-07 09:31:49 +0300
commite82888daf48ba818d7b1384b3ae4b3e7064291f9 (patch)
tree8416bbdf68e98dd0a48bec781cd92363fdc4b2b6 /js/src
parent015aaf3c3d52f9e28786f598f90f8a5a0884e7a0 (diff)
Revert "Avoid bad scrollbar replacement into width values (#30690)"
This reverts commit 5f00bba6529d53d850a0d24ff0415782c8acebe4.
Diffstat (limited to 'js/src')
-rw-r--r--js/src/modal.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/js/src/modal.js b/js/src/modal.js
index 8e505eda96..6b80bb2f0d 100644
--- a/js/src/modal.js
+++ b/js/src/modal.js
@@ -455,11 +455,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()
}