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

DayPilot.Calendar.getCoords() sometimes contains wrong information

Asked by Leo
19 hours 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]
16 hours 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
16 hours ago.

Ahhh, that makes sense! Thanks.

New Reply
This reply is
Attachments:
or drop files here
Your name (optional):