@syncfusion/ej2-gantt 22.1.36 → 22.1.38

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.
@@ -96,6 +96,9 @@ var Timeline = /** @class */ (function () {
96
96
  */
97
97
  Timeline.prototype.processZooming = function (isZoomIn) {
98
98
  this.isZoomToFit = false;
99
+ if (!this.parent['isProjectDateUpdated']) {
100
+ this.parent.dateValidationModule.calculateProjectDates();
101
+ }
99
102
  if (!isNullOrUndefined(this.parent.zoomingProjectStartDate)) {
100
103
  this.parent.cloneProjectStartDate = this.parent.cloneProjectStartDate.getTime() < this.parent.zoomingProjectStartDate.getTime()
101
104
  ? this.parent.cloneProjectStartDate : this.parent.zoomingProjectStartDate;
@@ -273,6 +276,8 @@ var Timeline = /** @class */ (function () {
273
276
  this.parent.showSpinner();
274
277
  }
275
278
  this.changeTimelineSettings(newTimeline);
279
+ this.isZoomToFit = false;
280
+ this.parent.isTimelineRoundOff = this.isZoomToFit ? false : isNullOrUndefined(this.parent.projectStartDate) ? true : false;
276
281
  };
277
282
  Timeline.prototype.bottomTierCellWidthCalc = function (mode, zoomLevel, date) {
278
283
  var convertedMilliSeconds;