visjs / vis-timeline

📅 Create a fully customizable, interactive timelines and 2d-graphs with items and ranges.
https://visjs.github.io/vis-timeline/
Other
1.88k stars 315 forks source link

TImeline collapsing on firefox if hiddenDates is set #1311

Open ankithanrsc opened 2 years ago

ankithanrsc commented 2 years ago

Please make sure to read the following list before creating a new issue:

ankithanrsc commented 2 years ago
timeline.destroy(); timeline = new vis.Timeline(container, items, 
{
  "maxHeight":"50px",
  "max": new Date('06-DEC-2021'), 
  "min":new Date('06-NOV-2021'),
  "timeAxis":
    {
      "scale": 'day'
    },
  "hiddenDates":[
    {
      "start": "2021-11-05T18:30:00.000Z",
      "end": "-002021-11-07T18:06:32.000Z"
    },
    {
      "start": "-002021-11-08T18:06:31.999Z",
      "end": "-002021-11-08T18:06:32.000Z"
    },
    {
      "start": "-002021-11-09T18:06:31.999Z",
      "end": "-002021-11-12T18:06:32.000Z"
    },
    {
      "start": "-002021-11-14T18:06:31.999Z",
      "end": "-002021-11-17T18:06:32.000Z"
    },
    {
      "start": "-002021-11-19T18:06:31.999Z",
      "end": "-002021-11-22T18:06:32.000Z"
    },
    {
      "start": "-002021-11-24T18:06:31.999Z",
      "end": "-002021-11-26T18:06:32.000Z"
    },
    {
      "start": "-002021-11-29T18:06:31.999Z",
      "end": "-002021-12-01T18:06:32.000Z"
    },
    {
      "start": "-002021-12-03T18:06:31.999Z",
      "end": "2021-12-05T18:30:00.000Z"
    }
]});