Skip to content

Commit

Permalink
fix: fix shaking when dialog and drawer show (#3362)
Browse files Browse the repository at this point in the history
* fix: fix shaking when dialog and drawer show

* chore: update common
  • Loading branch information
uyarn authored Oct 17, 2024
1 parent 3758b27 commit fc9b43b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/drawer/drawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ export default mixins(ActionMixin, getConfigReceiverMixins<Vue, DrawerConfig>('d
},

mounted() {
const hasScrollBar = document.body.scrollHeight > document.body.clientHeight;
const hasScrollBar = window.innerWidth > document.documentElement.clientWidth;

const scrollWidth = hasScrollBar ? getScrollbarWidth() : 0;

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

0 comments on commit fc9b43b

Please sign in to comment.