Skip to content

Commit

Permalink
fix: fix page shaking when dialog and drawer show
Browse files Browse the repository at this point in the history
  • Loading branch information
uyarn committed Oct 21, 2024
1 parent f475cc3 commit 0cedf6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drawer/drawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ export default defineComponent({
});

onMounted(() => {
const hasScrollBar = document.documentElement.scrollHeight > document.documentElement.clientHeight;
const hasScrollBar = window.innerWidth > document.documentElement.clientWidth;
const scrollWidth = hasScrollBar ? getScrollbarWidth() : 0;

styleEl.value = document.createElement('style');
Expand Down

0 comments on commit 0cedf6f

Please sign in to comment.