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

Weekday header on calendar not resizing

Asked by Matt Beaucage
15 days ago.

Hello,

In version 2019.2.3871 when I resize the div my calendar is in, the headers do not resize properly anymore. Is there a functionality change that I am missing or did this break?

It still does not resize in the newest available build

Comment posted by Matt Beaucage
15 days ago.

Hello,

Add on. This happens on the week view and resource view(Day) but the month view works properly

Answer posted by Dan Letecky [DayPilot]
15 days ago.

The DOM structure of the Calendar has changed in 2019.2.3880 (https://javascript.daypilot.org/daypilot-pro-for-javascript-2019-2-3880/) in order to support browser zoom levels. That requires the header width to be recalculated after changes.

If you resize the window the change will be detected automatically using window.onresize event handler. In other cases, you can call DayPilot.Calendar.show() to fix the view (https://api.daypilot.org/daypilot-calendar-show/).

The Scheduler uses autodetection for these cases as well and it's likely that it will be ported to the Calendar in the future.

New Reply
This reply is
Your name (optional):