diff --git a/src/_common b/src/_common index 6a97d8577..02c55e8fc 160000 --- a/src/_common +++ b/src/_common @@ -1 +1 @@ -Subproject commit 6a97d8577050856cf40c0b486a921bd16601ff85 +Subproject commit 02c55e8fc35facdf53e19c6d5a2661ab12d2a468 diff --git a/src/drawer/drawer.tsx b/src/drawer/drawer.tsx index 862cf324b..da12721ea 100644 --- a/src/drawer/drawer.tsx +++ b/src/drawer/drawer.tsx @@ -137,7 +137,8 @@ export default mixins(ActionMixin, getConfigReceiverMixins('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');