mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-04-24 14:04:43 +00:00
Revert "Avoid bad scrollbar replacement into width values (#30690)"
This reverts commit 85c4788ded.
This commit is contained in:
parent
c380aeb751
commit
737b6925ab
1 changed files with 2 additions and 3 deletions
|
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue