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

Weekday header on calendar not resizing

Asked by Matt Beaucage
4 years 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
4 years 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]
4 years 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.

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