fix(calendar): becomes invisible if resizing while not visible

This commit is contained in:
Elian Doran 2025-05-29 15:29:05 +03:00
parent 93a1d62218
commit af5eab4518
No known key found for this signature in database
2 changed files with 5 additions and 0 deletions

View File

@ -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;
}

View File

@ -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