Improves all-day event layout and drag behavior
Refactors all-day event layout calculation and rendering for improved accuracy and performance. Improves drag-and-drop behavior for all-day events, ensuring correct event placement and column detection. Addresses issues with event overflow display and provides a more responsive user experience.
This commit is contained in:
parent
6a17bba343
commit
ae3aab5dd0
5 changed files with 50 additions and 66 deletions
|
|
@ -371,15 +371,13 @@ export class EventRenderingService {
|
|||
// Pass current events to AllDayManager for state tracking
|
||||
this.allDayManager.setCurrentEvents(allDayEvents, weekDates);
|
||||
|
||||
const layouts = this.allDayManager.calculateAllDayEventsLayout(allDayEvents, weekDates);
|
||||
const layouts = this.allDayManager.initAllDayEventsLayout(allDayEvents, weekDates);
|
||||
|
||||
// Render each all-day event with pre-calculated layout
|
||||
layouts.forEach(layout => {
|
||||
this.allDayEventRenderer.renderAllDayEventWithLayout(layout.calenderEvent, layout);
|
||||
});
|
||||
|
||||
// Check and adjust all-day container height after rendering
|
||||
this.eventBus.emit('allday:checkHeight');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue