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/