danheron / Heron.MudCalendar

Calendar component for MudBlazor
MIT License
169 stars 33 forks source link

Day View - Event cells overlap #109

Closed sykesbPragmatics closed 6 months ago

sykesbPragmatics commented 6 months ago

I suspect this is not intended behavior. I have a day view that has resulted in a 3-wide setup.

image

The first two cells overlap. I had expected the first cell to only come out to 1/3 width.

Note that there seems to be a gap between the 3 columns. That gap appears to be smaller if its only 2 wide: image

sykesbPragmatics commented 6 months ago

In case its helpful here is a new screenshot showing the CalendarItem Start and End date values image

sykesbPragmatics commented 6 months ago

I'm betting that the logic that determines overlap is likely to blame. If so I have found this extremely useful:

This Finds all records that cover the date range not just bounded by it https://stackoverflow.com/questions/13513932/algorithm-to-detect-overlapping-periods tStartA < tEndB && tStartB < tEndA

sykesbPragmatics commented 6 months ago

@danheron Thanks so much for the quick fix!