BUG: Fixed issue with early gird column sync in tempus preview page

This commit is contained in:
Ivymaster
2026-10-22 00:54:10 +02:00
parent 238e79decc
commit 15ec32ad4f
5 changed files with 21 additions and 7 deletions
+1 -1
View File
@@ -147,7 +147,7 @@ export default {
});
},
resetPrintLayout() {
const view = this.$el?.querySelector('.fhc-calendar-mode-week-view');
const view = this.$el?.querySelector('.fhc-calendar-mode-range-view');
if (!view) return;
Array.from(view.children).forEach((week) => {
@@ -27,6 +27,10 @@ export default {
from: 'areGridWidthsEqual',
default: true,
},
isInitialColumnWidthSyncPostponed: {
from: 'isInitialColumnWidthSyncPostponed',
default: false,
},
},
props: {
day: {
@@ -70,7 +74,19 @@ export default {
this.scheduleGridWidthSync();
},
events:{
handler() {
handler() {
if (this.events.length === 0 || this.events.every(event => event.type === 'loading')) {
return;
}
if (this.isInitialColumnWidthSyncPostponed) {
this.isInitialColumnWidthSyncPostponed = false;
setTimeout(() => {
this.startFreshColumnWidthSync();
}, 200);
return;
}
this.startFreshColumnWidthSync();
},
flush: 'post',
@@ -162,7 +162,7 @@ export default {
</div>
<div
v-if="!event.allDayEvent && event?.beginn && event?.ende"
class="event-time d-none d-xl-grid h-100"
class="event-time d-grid h-100"
>
<span>{{ start }}</span>
<span>{{ end }}</span>
@@ -72,7 +72,8 @@ export default {
renderers: Vue.computed(() => this.renderers),
appConfig: Vue.computed(() => this.appconfig),
canToggleGrid: this.permissions.stundenraster,
isHeaderSticky: false,
isHeaderSticky: true,
isInitialColumnWidthSyncPostponed: true,
};
},
data() {
@@ -264,9 +264,6 @@ export function useEventLoader(
}
const cachePadding = getCachePadding();
if (isLoaderEventVisualReset) {
hasFirstLoadOccurred = false;
}
if (isLoaderEventVisualReset) {
hasFirstLoadOccurred = false;