diff options
author | Giovanni Mendoza <mendozagioo@gmail.com> | 2020-01-14 03:42:22 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2020-05-12 19:21:36 +0300 |
commit | f1827ce9cd54e835069f5d58843925df2a4b03c0 (patch) | |
tree | e3f073b41fb9c9fbe1582a702ea0e3efe05c667e /js/src | |
parent | eb1df3e07915fc77fd0f1250efa5588f3bd0f30f (diff) |
Avoid bad scrollbar replacement into width values
Refs #30772
Diffstat (limited to 'js/src')
-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 5dc7cd3938..309d6d73ac 100644 --- a/js/src/modal.js +++ b/js/src/modal.js @@ -455,7 +455,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() } |