diff --git a/packages/nc-gui/components/smartsheet/calendar/SideMenu.vue b/packages/nc-gui/components/smartsheet/calendar/SideMenu.vue index 6abc72aeb9..c6ed309847 100644 --- a/packages/nc-gui/components/smartsheet/calendar/SideMenu.vue +++ b/packages/nc-gui/components/smartsheet/calendar/SideMenu.vue @@ -248,42 +248,68 @@ const sideBarListScrollHandle = useDebounceFn(async (e: Event) => { }) } }) + +const height = ref(0) + +const heightListener = () => { + height.value = window.innerHeight +} + +onMounted(() => { + window.addEventListener('resize', heightListener) +}) + +onUnmounted(() => { + window.removeEventListener('resize', heightListener) +})