We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d59417 commit 350a549Copy full SHA for 350a549
src/components/modal/helpers/modal-manager.js
@@ -139,9 +139,10 @@ const ModalManager = /*#__PURE__*/ Vue.extend({
139
}
140
},
141
checkScrollbar() {
142
- // Determine if the body element is overflowing
143
- const { left, right } = getBCR(document.body)
144
- this.isBodyOverflowing = left + right < window.innerWidth
+ const overflowStyle = getCS(document.body).overflowY
+ this.isBodyOverflowing =
+ (overflowStyle === 'auto' || overflowStyle === 'scroll') &&
145
+ document.body.scrollHeight > document.body.clientHeight
146
147
setScrollbar() {
148
const body = document.body
0 commit comments