diff options
author | Giovanni Mendoza <mendozagioo@gmail.com> | 2020-01-14 03:42:22 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2020-05-12 07:51:09 +0300 |
commit | 3e7566f2c3f0d7dff368e16c0427a13900f3cf84 (patch) | |
tree | d7e73a663d614c1b6e5d3d136254b78176ee05e8 /js | |
parent | a22e2900f99a71d182f31f9fad7cd86e608cbe94 (diff) |
Avoid bad scrollbar replacement into width values
Diffstat (limited to 'js')
-rw-r--r-- | js/src/modal.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/modal.js b/js/src/modal.js index 0daa428a8d..af396b56cf 100644 --- a/js/src/modal.js +++ b/js/src/modal.js @@ -443,7 +443,7 @@ class Modal { _checkScrollbar() { 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() } |