mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
fix(calendar): becomes invisible if resizing while not visible
This commit is contained in:
parent
93a1d62218
commit
af5eab4518
@ -165,6 +165,7 @@ export default class CalendarView extends ViewMode {
|
|||||||
locale: await CalendarView.#getLocale(),
|
locale: await CalendarView.#getLocale(),
|
||||||
height: "100%",
|
height: "100%",
|
||||||
nowIndicator: true,
|
nowIndicator: true,
|
||||||
|
handleWindowResize: false,
|
||||||
eventDidMount: (e) => {
|
eventDidMount: (e) => {
|
||||||
const { iconClass, promotedAttributes } = e.event.extendedProps;
|
const { iconClass, promotedAttributes } = e.event.extendedProps;
|
||||||
|
|
||||||
@ -233,6 +234,9 @@ export default class CalendarView extends ViewMode {
|
|||||||
calendar.render();
|
calendar.render();
|
||||||
this.calendar = calendar;
|
this.calendar = calendar;
|
||||||
|
|
||||||
|
new ResizeObserver(() => calendar.updateSize())
|
||||||
|
.observe(this.$calendarContainer[0]);
|
||||||
|
|
||||||
return this.$root;
|
return this.$root;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
* [Random EPERM: operation not permitted on Windows](https://github.com/TriliumNext/Notes/issues/249)
|
* [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
|
* [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
|
* [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
|
## ✨ Improvements
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user