Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit af5eab4

Browse files
committed
fix(calendar): becomes invisible if resizing while not visible
1 parent 93a1d62 commit af5eab4

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

apps/client/src/widgets/view_widgets/calendar_view.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ export default class CalendarView extends ViewMode {
165165
locale: await CalendarView.#getLocale(),
166166
height: "100%",
167167
nowIndicator: true,
168+
handleWindowResize: false,
168169
eventDidMount: (e) => {
169170
const { iconClass, promotedAttributes } = e.event.extendedProps;
170171

@@ -233,6 +234,9 @@ export default class CalendarView extends ViewMode {
233234
calendar.render();
234235
this.calendar = calendar;
235236

237+
new ResizeObserver(() => calendar.updateSize())
238+
.observe(this.$calendarContainer[0]);
239+
236240
return this.$root;
237241
}
238242

docs/Release Notes/Release Notes/v0.94.0.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
* [Random EPERM: operation not permitted on Windows](https://github.com/TriliumNext/Notes/issues/249)
2727
* [The update button is sometimes blank](https://github.com/TriliumNext/Notes/pull/1975) by @SiriusXT
2828
* [Unable to handle multi line mathematical formulas when importing markdown](https://github.com/TriliumNext/Notes/pull/1984) by @SiriusXT
29+
* Calendar: became invisible if resizing while not visible
2930

3031
## ✨ Improvements
3132

0 commit comments

Comments
 (0)