Background image not aligned with time scale in Gantt v3.0

Hi,
we have just upgraded to v3.0 and found bug regarding gantt grid rendering if static_background is set.

If you set the lowest level subscale’s unit to something different than day grid rendering is broken as shown on the screenshot below. Here is gantt configuration:

gantt.config.scale_unit = "year";
gantt.config.min_column_width = 30;
gantt.config.date_scale = "%Y";
gantt.config.subscales = [
   {unit: "month", step: 1, date: "%F, %Y"},
   {unit: "week", step: 1, date: "%W"}
];


We changed week unit to day unit with step set to 7. It is much better but gantt still renders grid incorrectly at the end of its timeline.

gantt.config.scale_unit = "year";
gantt.config.min_column_width = 30;
gantt.config.date_scale = "%Y";
gantt.config.subscales = [
   {unit: "month", step: 1, date: "%F, %Y"},
   {unit: "day", step: 7, date: "%W"}
];


Any suggestions?

Hi,
there is not much can be done in this case. static_background option generates an image instead rendering background grid. It increase the rendering speed, but does not guarantees that image will be aligned correctly on all duration of the scale, since columns may different width.
docs.dhtmlx.com/gantt/api__gantt … onfig.html
You may try another config (although, it won’t display individual cells at all)
docs.dhtmlx.com/gantt/api__gantt … onfig.html