Revert "Avoid bad scrollbar replacement into width values (#30690)"
This reverts commit 5f00bba652.
This commit is contained in:
parent
015aaf3c3d
commit
e82888daf4
1 changed files with 2 additions and 5 deletions
|
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue