From f1827ce9cd54e835069f5d58843925df2a4b03c0 Mon Sep 17 00:00:00 2001 From: Giovanni Mendoza Date: Mon, 13 Jan 2020 18:42:22 -0600 Subject: Avoid bad scrollbar replacement into width values Refs #30772 --- js/src/modal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() } -- cgit v1.2.3