@syncfusion/ej2-gantt 19.4.52 → 19.4.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6519,7 +6519,7 @@ class Timeline {
6519
6519
  const validStartLeft = this.parent.dataOperation.getTaskLeft(validStartDate, false);
6520
6520
  const validEndLeft = this.parent.dataOperation.getTaskLeft(validEndDate, false);
6521
6521
  let isChanged;
6522
- if (!isNullOrUndefined(maxStartLeft) && (maxStartLeft <= this.bottomTierCellWidth || maxStartLeft <= validStartLeft)) {
6522
+ if (!isNullOrUndefined(maxStartLeft) && (maxStartLeft < this.bottomTierCellWidth || maxStartLeft <= validStartLeft)) {
6523
6523
  isChanged = 'prevTimeSpan';
6524
6524
  minStartDate = minStartDate > this.timelineStartDate ? this.timelineStartDate : minStartDate;
6525
6525
  }
@@ -7980,11 +7980,20 @@ class ChartRows extends DateProcessor {
7980
7980
  labelString = labelString === 'isCustomTemplate' ? this.parent.labelSettings.taskLabel : labelString;
7981
7981
  }
7982
7982
  if (labelString !== 'null') {
7983
- taskLabel$$1 = '<span class="' + taskLabel + '" style="line-height:' +
7984
- (this.taskBarHeight - 1) + 'px; text-align: left;' +
7985
- 'display:' + 'inline-block;' +
7986
- 'width:' + (data.ganttProperties.width - 10) + 'px; height:' +
7987
- this.taskBarHeight + 'px;">' + labelString + '</span>';
7983
+ if (isNaN(parseInt(labelString))) {
7984
+ taskLabel$$1 = '<span class="' + taskLabel + '" style="line-height:' +
7985
+ (this.taskBarHeight - 1) + 'px; text-align: left;' +
7986
+ 'display:' + 'inline-block;' +
7987
+ 'width:' + (data.ganttProperties.width - 10) + 'px; height:' +
7988
+ this.taskBarHeight + 'px;">' + labelString + '</span>';
7989
+ }
7990
+ else {
7991
+ taskLabel$$1 = '<span class="' + taskLabel + '" style="line-height:' +
7992
+ (this.taskBarHeight - 1) + 'px; text-align:' + (this.parent.viewType === 'ResourceView' ? 'left;' : ';') +
7993
+ 'display:' + (this.parent.viewType === 'ResourceView' ? 'inline-flex;' : ';') +
7994
+ 'width:' + (this.parent.viewType === 'ResourceView' ? (data.ganttProperties.width - 10) : '') + 'px; height:' +
7995
+ this.taskBarHeight + 'px;">' + labelString + '</span>';
7996
+ }
7988
7997
  }
7989
7998
  const template = !isNullOrUndefined(data.ganttProperties.segments) && data.ganttProperties.segments.length > 0 ?
7990
7999
  this.splitTaskbar(data, labelString) : (data.ganttProperties.startDate && data.ganttProperties.endDate
@@ -8583,11 +8592,20 @@ class ChartRows extends DateProcessor {
8583
8592
  labelString = labelString === 'isCustomTemplate' ? this.parent.labelSettings.taskLabel : labelString;
8584
8593
  }
8585
8594
  if (labelString !== 'null') {
8586
- labelDiv = this.createDivElement('<span class="' +
8587
- taskLabel + '" style="line-height:' +
8588
- (this.taskBarHeight - 1) + 'px; display:' + (this.parent.viewType === 'ResourceView' ? 'inline-flex;' : '') + 'width:' +
8589
- (this.parent.viewType === 'ResourceView' ? (data.ganttProperties.width - 10) : '') + 'px; height:' +
8590
- this.taskBarHeight + 'px;">' + labelString + '</span>');
8595
+ if (isNaN(parseInt(labelString))) {
8596
+ labelDiv = this.createDivElement('<span class="' + taskLabel + '" style="line-height:' +
8597
+ (this.taskBarHeight - 1) + 'px; text-align: left;' +
8598
+ 'display:' + 'inline-block;' +
8599
+ 'width:' + (data.ganttProperties.width - 10) + 'px; height:' +
8600
+ this.taskBarHeight + 'px;">' + labelString + '</span>');
8601
+ }
8602
+ else {
8603
+ labelDiv = this.createDivElement('<span class="' +
8604
+ taskLabel + '" style="line-height:' +
8605
+ (this.taskBarHeight - 1) + 'px; display:' + (this.parent.viewType === 'ResourceView' ? 'inline-flex;' : ';') + 'width:' +
8606
+ (this.parent.viewType === 'ResourceView' ? (data.ganttProperties.width - 10) : ';') + 'px; height:' +
8607
+ this.taskBarHeight + 'px;">' + labelString + '</span>');
8608
+ }
8591
8609
  progressBarInnerDiv[0].appendChild([].slice.call(labelDiv)[0]);
8592
8610
  }
8593
8611
  const milestoneTemplate = '<div class="' + parentMilestone + '" style="position:absolute;">' +