sets the minimal scale unit (in case multiple scales are used) as the interval of the leading/closing empty space

boolean scale_offset_minimal;


gantt.config.scale_offset_minimal = false;

Default value:


If the scale interval is not strictly specified (by the start_date, end_date options), dhtmlxGantt calculates it based on the dates of the earliest and latest tasks. Plus, it adds an empty interval to the beginning and the end of the scale. By default, this 'empty' interval is equal to the minimum unit of the used scales (in case multiple scales are used).

If you disable the option, dhtmlxGantt will add an empty interval equal to the value of the unit property of the scales option.

Back to top