diff options
Diffstat (limited to 'js/src')
| -rw-r--r-- | js/src/modal.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/js/src/modal.js b/js/src/modal.js index 2ff93342d..4068471cd 100644 --- a/js/src/modal.js +++ b/js/src/modal.js @@ -427,7 +427,8 @@ const Modal = (() => { } _checkScrollbar() { - this._isBodyOverflowing = document.body.clientWidth < window.innerWidth + const rect = document.body.getBoundingClientRect() + this._isBodyOverflowing = rect.left + rect.right < window.innerWidth this._scrollbarWidth = this._getScrollbarWidth() } |
