mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-20 20:00:36 +03:00
Revert "Avoid bad scrollbar replacement into width values (#30690)"
This reverts commit 5f00bba652.
This commit is contained in:
+2
-5
@@ -455,11 +455,8 @@ class Modal {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_checkScrollbar() {
|
_checkScrollbar() {
|
||||||
const {
|
const rect = document.body.getBoundingClientRect()
|
||||||
left, right
|
this._isBodyOverflowing = rect.left + rect.right < window.innerWidth
|
||||||
} = document.body.getBoundingClientRect()
|
|
||||||
|
|
||||||
this._isBodyOverflowing = Math.floor(left + right) < window.innerWidth
|
|
||||||
this._scrollbarWidth = this._getScrollbarWidth()
|
this._scrollbarWidth = this._getScrollbarWidth()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user