Our state of the art Gantt chart


Post by capmo »

Hi there

I have a question regarding adding new predecessors/successors with lags using the left side of gantt chart. When we want to add a relation between tasks, for example I want to set the predecessor to task 2, with lag of 3 days, if I omit the unit and just press enter, the unit is automatically calculated based on the zoom level of the right hand side of the gantt chart.
If the zoom is on quarter levels, by typing

2+3Q

, and if we are zoomed in, we get

2+3D

.

Here is the config code for the column:

      {
        id: 'predecessor',
        type: 'predecessor',
        filterable: false,
        editor: {
          picker: {
            width: 256,
          },
          placeholder: `${t('search')}...`,
          icon: 'b-icon-search',
        },
        dependencyIdField: 'taskNumber',
        width: 112,
      },

We want to make this consistent and only use day units and not be dependant on zoom level.
How can we do that?

Attachments
Before hitting enter
Before hitting enter
Screenshot 2021-04-22 at 15.36.33.png (2.3 KiB) Viewed 399 times
After hitting enter on zoomed out level
After hitting enter on zoomed out level
Screenshot 2021-04-22 at 15.47.16.png (8.6 KiB) Viewed 400 times

Post by mats »

That's a bug yes, we'll look into this! https://github.com/bryntum/support/issues/2728


Post Reply