|
|
@@ -420,7 +420,7 @@ class Timeline extends LitElement {
|
|
|
const currentDate = dayjs(this._start);
|
|
|
const format = this.legendUnitFormat[legendUnit];
|
|
|
let nextColumn = currentDate.add(legendMinUnitSpan, "m");
|
|
|
- // Check is the starting and end date can accomodate fews cell of the given unit for this unit of time
|
|
|
+ // Check if the starting and end date can accomodate fews cell of the given unit for this unit of time
|
|
|
const isLegendPossible =
|
|
|
// Enough time to fit 1 cell AND
|
|
|
this._end.diff(this._start, legendUnit) > 0 &&
|
|
|
@@ -431,6 +431,7 @@ class Timeline extends LitElement {
|
|
|
|
|
|
if (isLegendPossible) {
|
|
|
let currentHeader = currentDate.format(format);
|
|
|
+ nextColumn = currentDate;
|
|
|
const row: Array<legendItem> = [];
|
|
|
let i = 0;
|
|
|
for (let j = 0; j < nCol; j++) {
|