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

Problem with export function on Scheduler

Asked by Patrick
6 years ago.

When trying to do the exportAs to print the scheduler, I get an error message 'Cannot read property 'height of undefined'. This happens in the img.generate function on calendar._splitter.height when it tries to call 'rect.y = rectangles.corner.h - calendar._splitter.height;' on line 39240. If I change that to a value, the export function works.

Comment posted by Dan Letecky [DayPilot]
6 years ago.

Can you please post the config that causes this error? The splitter is only created when rowHeaderColumns are defined and the same condition is checked during export.

Answer posted by Patrick
6 years ago.

Thanks for the quick reply! Looking over our config, found what was wrong. We put rowHeaderColumns: {width: 120} instead of rowHeaderWidth: 120. Works fine now!

Comment posted by Dan Letecky [DayPilot]
6 years ago.

Great, thanks for the update!

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