mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-10-27 22:33:01 +00:00
BUG: Fixed issue with early gird column sync in tempus preview page
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user