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:
Janus C. H. Knudsen 2025-10-01 18:41:28 +02:00
parent 6a17bba343
commit ae3aab5dd0
5 changed files with 50 additions and 66 deletions

View file

@ -83,17 +83,8 @@ export class ColumnDetectionUtils {
return column || null;
}
/**
* Clear cache (useful for testing or when DOM structure changes)
*/
public static clearCache(): void {
this.columnBoundsCache = [];
}
/**
* Get current cache for debugging
*/
public static getCache(): ColumnBounds[] {
public static getColumns(): ColumnBounds[] {
return [...this.columnBoundsCache];
}
}