Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(calendar): becomes invisible if resizing while not visible
Elian Doranaf5eab4518d6
diff --git a/apps/client/src/widgets/view_widgets/calendar_view.ts b/apps/client/src/widgets/view_widgets/calendar_view.tsindex d6eafa791b..8f953f416a 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.mdindex f4abff0b3b..0ba921a1dc 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