mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-03-30 03:00:24 +00:00
Avoid bad scrollbar replacement into width values
This commit is contained in:
parent
a22e2900f9
commit
3e7566f2c3
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue