0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-18 10:52:19 +01:00

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

This reverts commit 5f00bba6529d53d850a0d24ff0415782c8acebe4.
This commit is contained in:
XhmikosR 2020-05-06 18:14:10 +03:00
parent 015aaf3c3d
commit e82888daf4

View File

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