diff options
| author | Giovanni Mendoza <[email protected]> | 2020-01-13 18:42:22 -0600 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2020-05-12 07:51:09 +0300 |
| commit | 3e7566f2c3f0d7dff368e16c0427a13900f3cf84 (patch) | |
| tree | d7e73a663d614c1b6e5d3d136254b78176ee05e8 /js/src | |
| parent | a22e2900f99a71d182f31f9fad7cd86e608cbe94 (diff) | |
| download | bootstrap-3e7566f2c3f0d7dff368e16c0427a13900f3cf84.tar.xz bootstrap-3e7566f2c3f0d7dff368e16c0427a13900f3cf84.zip | |
Avoid bad scrollbar replacement into width values
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 0daa428a8..af396b56c 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() } |
