Page 1 of 1

timeSpanHighlight: time spans disapear when timeline date range changes

Posted: Thu Jan 26, 2023 10:20 pm
by Jerther

Hello!

Here's how to replicate:

  1. Load the time span demo

  2. From the console, add a timespan early in the Gantt so you see a timespan appear:

    gantt.highlightTimeSpans([{name: 'test', startDate: new Date(2019, 0, 1), endDate: new Date(2019, 0, 3) }])
    
  3. Right click on the timeline, date range

  4. Click on the right arrow until the timespan is no longer visible

  5. Click on the left arrow until the timespan comes back into view

  6. :!: The timespan is not visible anymore.

A workaround is to call highlightTimeSpans() every time the timeline date range changes. A bit inefficient though.


Re: timeSpanHighlight: time spans disapear when timeline date range changes

Posted: Thu Jan 26, 2023 11:00 pm
by marcio

Hey Jerther,

Thanks for the detailed report and step-by-step to reproduce it! I created a ticket to fix it https://github.com/bryntum/support/issues/6063