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

Daypilot Scheduler Angular throws error cannot read property 'clientWidth' of null

Asked by Alex
3 years ago.

The error is thrown when navigate from a page with daypilot scheduler component to another page. I tried calling 'dispose' method from scheduler control but it doesn't work. The version of library is 2021.1.4880 and the config:
{
visible: false,

allowMultiSelect: false,
scale: 'Day',
timeHeaders: [{ groupBy: 'Month' }, { groupBy: 'Day', format: 'd' }],
eventHeight: 25,
rowMinHeight: 25,
rowMarginBottom: 1,
treeEnabled: true,
theme: 'scheduler',
floatingTimeHeaders: false,
treeAnimation: false,
cellWidth: 40,
cellWidthSpec: 'Auto',
cellWidthMin: 20,
crosshairType: 'Full',
groupConcurrentEvents: true,
groupConcurrentEventsLimit: 1,
durationBarVisible: false,
timeRangeSelectedHandling: 'Disabled',
eventMoveHandling: 'Disabled',
eventResizeHandling: 'Disabled',
eventDeleteHandling: 'Disabled',
eventClickHandling: 'Select',
eventHoverHandling: 'Bubble',
zoom: 0,
zoomLevels: [
{
name: "AM/PM",
properties: {
scale: "CellDuration",
cellDuration: 720,
cellWidth: 45,
timeHeaders: [{ groupBy: "Month" }, { groupBy: "Day", format: "d" }, { groupBy: "Cell", format: "tt" }]
}
}
]
}

Answer posted by Dan Letecky [DayPilot]
3 years ago.

Unfortunately, I'm not able to reproduce the problem. Could you please send a sample project that reproduces the issue to support@daypilot.org? You can generate a blank project at https://builder.daypilot.org.

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