0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-18 15:54:26 +01:00

Revert "Avoid bad scrollbar replacement into width values (#30690)"

This reverts commit 85c4788dedfdec7d681829e3a52ada0c33f8fa8e.
This commit is contained in:
XhmikosR 2020-05-06 17:43:51 +03:00 committed by Johann-S
parent c380aeb751
commit 737b6925ab

View File

@ -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()
}