From: XhmikosR Date: Wed, 6 May 2020 14:43:51 +0000 (+0300) Subject: Revert "Avoid bad scrollbar replacement into width values (#30690)" X-Git-Tag: v5.0.0-alpha1~139 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=737b6925ab64b431d47b24ed1bb3c450143872d1;p=thirdparty%2Fbootstrap.git Revert "Avoid bad scrollbar replacement into width values (#30690)" This reverts commit 85c4788dedfdec7d681829e3a52ada0c33f8fa8e. --- diff --git a/js/src/modal.js b/js/src/modal.js index 19561122ff..0daa428a8d 100644 --- a/js/src/modal.js +++ b/js/src/modal.js @@ -442,9 +442,8 @@ class Modal { } _checkScrollbar() { - const { left, right } = document.body.getBoundingClientRect() - - this._isBodyOverflowing = Math.floor(left + right) < window.innerWidth + const rect = document.body.getBoundingClientRect() + this._isBodyOverflowing = rect.left + rect.right < window.innerWidth this._scrollbarWidth = this._getScrollbarWidth() }