mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-17 19:21:23 +03:00
Avoid bad scrollbar replacement into width values (#30690)
This commit is contained in:
+5
-2
@@ -455,8 +455,11 @@ class Modal {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_checkScrollbar() {
|
_checkScrollbar() {
|
||||||
const rect = document.body.getBoundingClientRect()
|
const {
|
||||||
this._isBodyOverflowing = rect.left + rect.right < window.innerWidth
|
left, right
|
||||||
|
} = document.body.getBoundingClientRect()
|
||||||
|
|
||||||
|
this._isBodyOverflowing = Math.floor(left + right) < window.innerWidth
|
||||||
this._scrollbarWidth = this._getScrollbarWidth()
|
this._scrollbarWidth = this._getScrollbarWidth()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user