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

Height issue

Asked by Maheswar
6 years ago.

I would like to set height and width for daypilot i used as following still it is not working.Please find attachment.

dp.heightSpec = "Parent100Pct";
dp.cellWidth = 10.011;

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

HeightSpec = "Parent100Pct" setting requires careful setting of the parent element location/dimensions. The height of the parent element (div) has to be set explicitly.

1. Either use height:100% on all ancestors, up to <html>.
2. Use position: absolute and top and bottom styles.

Please see also:

http://doc.daypilot.org/scheduler/100-pct-height/

This page explains approach #1:
http://kb.daypilot.org/22832/how-to-use-scheduler-with-100-height/

The following demo page demonstrates approach #2:
http://javascript.daypilot.org/sandbox/scheduler/height100.html

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