1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-27 15:19:52 +02:00

Avoid bad scrollbar replacement into width values

Refs #30772
This commit is contained in:
Giovanni Mendoza
2020-01-13 18:42:22 -06:00
committed by XhmikosR
parent eb1df3e079
commit f1827ce9cd

View File

@@ -455,7 +455,7 @@ class Modal {
_checkScrollbar() { _checkScrollbar() {
const rect = document.body.getBoundingClientRect() const rect = document.body.getBoundingClientRect()
this._isBodyOverflowing = rect.left + rect.right < window.innerWidth this._isBodyOverflowing = Math.round(rect.left + rect.right) < window.innerWidth
this._scrollbarWidth = this._getScrollbarWidth() this._scrollbarWidth = this._getScrollbarWidth()
} }