diff options
author | XhmikosR <xhmikosr@gmail.com> | 2020-05-06 17:43:51 +0300 |
---|---|---|
committer | Johann-S <johann.servoire@gmail.com> | 2020-05-06 22:25:59 +0300 |
commit | 737b6925ab64b431d47b24ed1bb3c450143872d1 (patch) | |
tree | 06668a1444c1ddc22a45a28e06cc3a9eacc79bf4 /js | |
parent | c380aeb751742a01c657b8978152f42dcd42efdd (diff) |
Revert "Avoid bad scrollbar replacement into width values (#30690)"
This reverts commit 85c4788dedfdec7d681829e3a52ada0c33f8fa8e.
Diffstat (limited to 'js')
-rw-r--r-- | js/src/modal.js | 5 |
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() } |