adjusts the padding around task bars in the timeline when bar_height
is set to "full"
gantt.config.bar_height_padding = 5;
gantt.init("gantt_here");
The bar_height_padding
config defines the vertical padding for task bars in the timeline when gantt.config.bar_height
is set to "full". The height of a task bar is calculated as gantt.config.row_height - gantt.config.bar_height_padding
.
0
will make the task bars occupy the full height of the row.The example below shows a smaller padding value, which leaves less space around the task bars:
gantt.config.bar_height_padding = 3;
In this example, a larger padding value leaves more empty space above and below the task bars:
gantt.config.bar_height_padding = 14;
added in v9.0
Back to top