Hi Mark,
In Gantt, we have a public method call windowResize, it will update resize the Gantt element by its parent element width & height. Hence, we can call this method once after Bootstrap accordion of Gantt control opened.
Please refer following code snippet,
$('#accordion').on('shown.bs.collapse', function (e) {
var $target = e.target;
if ($target.id == "collapseTwo") {
var ganttObj = $("#GanttContainer").ejGantt("instance");
ganttObj.windowResize();
}
}) |
We have also prepared a sample for your reference. Please refer following sample link,
Please let us know, if you require any other assistance.
Regards,
Jayakumar D