parent
eb1df3e079
commit
f1827ce9cd
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue