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

Gantt graph appearance height

Related article: HTML5 Gantt Chart (JavaScript/PHP)
Asked by FabrizioB
6 years ago.

I have try to found where i have to modify the code in order to have the gantt char to cover all the available windows height. Now starting from the sample in php (https://code.daypilot.org/file/download/7krn6m5nb5czthewcymxq4drse/TutorialHtml5GanttChart.Php.20170627.zip) I get a bottom area in the page that I want to avoid and made the gantt full windows. I haven't found where I can specify it! By CSS, by JS? Somebody can help me or give any idea how to do it? Thanks

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

You can use dp.heightSpec = "Parent100Pct" to set the Gantt height to 100% of the parent element. Just make sure that the parent height is set explicitly (either using "height" style or using "top"/"bottom") - the Gantt doesn't stretch it.

See also:
https://api.daypilot.org/daypilot-gantt-heightspec/

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