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 80cb876 commit bd48658Copy full SHA for bd48658
packages/vuetify/src/util/getScrollParent.ts
@@ -25,7 +25,9 @@ export function hasScrollbar (el?: Element | null) {
25
if (!el || el.nodeType !== Node.ELEMENT_NODE) return false
26
27
const style = window.getComputedStyle(el)
28
- return style.overflowY === 'scroll' || (style.overflowY === 'auto' && el.scrollHeight > el.clientHeight)
+ const hasVerticalScrollbar = style.overflowY === 'scroll' || (style.overflowY === 'auto' && el.scrollHeight > el.clientHeight)
29
+ const hasHorizontalScrollbar = style.overflowX === 'scroll' || (style.overflowX === 'auto' && el.scrollWidth > el.clientWidth)
30
+ return hasVerticalScrollbar || hasHorizontalScrollbar
31
}
32
33
function isPotentiallyScrollable (el?: Element | null) {
0 commit comments