diff --git a/apps/client/src/widgets/view_widgets/calendar_view.ts b/apps/client/src/widgets/view_widgets/calendar_view.ts index d6eafa791..8f953f416 100644 --- a/apps/client/src/widgets/view_widgets/calendar_view.ts +++ b/apps/client/src/widgets/view_widgets/calendar_view.ts @@ -165,6 +165,7 @@ export default class CalendarView extends ViewMode { locale: await CalendarView.#getLocale(), height: "100%", nowIndicator: true, + handleWindowResize: false, eventDidMount: (e) => { const { iconClass, promotedAttributes } = e.event.extendedProps; @@ -233,6 +234,9 @@ export default class CalendarView extends ViewMode { calendar.render(); this.calendar = calendar; + new ResizeObserver(() => calendar.updateSize()) + .observe(this.$calendarContainer[0]); + return this.$root; } diff --git a/docs/Release Notes/Release Notes/v0.94.0.md b/docs/Release Notes/Release Notes/v0.94.0.md index f4abff0b3..0ba921a1d 100644 --- a/docs/Release Notes/Release Notes/v0.94.0.md +++ b/docs/Release Notes/Release Notes/v0.94.0.md @@ -26,6 +26,7 @@ * [Random EPERM: operation not permitted on Windows](https://github.com/TriliumNext/Notes/issues/249) * [The update button is sometimes blank](https://github.com/TriliumNext/Notes/pull/1975) by @SiriusXT * [Unable to handle multi line mathematical formulas when importing markdown](https://github.com/TriliumNext/Notes/pull/1984) by @SiriusXT +* Calendar: became invisible if resizing while not visible ## ✨ Improvements