search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

DayPilot.Calendar.getCoords() sometimes contains wrong information

Asked by Leo
1 month ago.

Hi Dan,

When using DayPilot.Calendar.getCoords() on a DayPilot.Calendar instance in Day View with Resources (like this) and showAllDayEvents = true, the values I receive when triggering getCoords() on an all-day event are occasionally wrong.

E.g. the date object sometimes includes a time like 2026-03-30T00:06:00 instead of being 00:00:00, and the reported column is sometimes a random other one (usually the previous one).

I couldn’t find out exactly when this happens, it seems to happen at least every 3rd time and then keeps delivering wrong results until I reload the page.

(allDayEnd is set to the default, "DateTime")

Cheers
Leo

Answer posted by Dan Letecky [DayPilot]
1 month ago.

The getCoords() method returns the position in the grid. If you are not in the grid anymore, it returns the last position. So when the mouse is over all-day events, it doesn’t have a useful value.

Comment posted by Leo
1 month ago.

Ahhh, that makes sense! Thanks.

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.