devexpress-gantt 2.0.7 → 2.0.8

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.
package/dist/dx-gantt.css CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * DevExpress Gantt (dx-gantt)
3
- * Version: 2.0.7
4
- * Build date: Tue Nov 17 2020
3
+ * Version: 2.0.8
4
+ * Build date: Wed Nov 18 2020
5
5
  *
6
6
  * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED
7
7
  * Read about DevExpress licensing here: https://www.devexpress.com/Support/EULAs
package/dist/dx-gantt.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * DevExpress Gantt (dx-gantt)
3
- * Version: 2.0.7
4
- * Build date: Tue Nov 17 2020
3
+ * Version: 2.0.8
4
+ * Build date: Wed Nov 18 2020
5
5
  *
6
6
  * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED
7
7
  * Read about DevExpress licensing here: https://www.devexpress.com/Support/EULAs
@@ -4478,6 +4478,9 @@ var DateUtils = (function () {
4478
4478
  DateUtils.parse = function (data) {
4479
4479
  return typeof data === "function" ? new Date(data()) : new Date(data);
4480
4480
  };
4481
+ DateUtils.getTimezoneOffsetDiff = function (data1, data2) {
4482
+ return data2.getTimezoneOffset() - data1.getTimezoneOffset();
4483
+ };
4481
4484
  DateUtils.msPerHour = 3600000;
4482
4485
  DateUtils.msPerDay = 24 * DateUtils.msPerHour;
4483
4486
  DateUtils.msPerWeek = 7 * DateUtils.msPerDay;
@@ -4538,8 +4541,13 @@ var ElementTextHelper = (function () {
4538
4541
  result.setFullYear(result.getFullYear() + index * 5);
4539
4542
  break;
4540
4543
  }
4544
+ result = this.getScaleStartDateCorrectedWithDST(result);
4541
4545
  return result;
4542
4546
  };
4547
+ ElementTextHelper.prototype.getScaleStartDateCorrectedWithDST = function (date) {
4548
+ var timeZoneDiff = DateUtils.getTimezoneOffsetDiff(new Date(this.startTime), date);
4549
+ return timeZoneDiff > 0 ? new Date(date.getTime() + timeZoneDiff * 60000) : date;
4550
+ };
4543
4551
  ElementTextHelper.prototype.getScaleItemText = function (index, scaleType) {
4544
4552
  var scaleItemStartDate = this.getScaleItemStartDate(index, scaleType);
4545
4553
  var isViewTypeScale = this.viewType.valueOf() == scaleType.valueOf();
@@ -6660,7 +6668,9 @@ var GanttView = (function () {
6660
6668
  GanttView.prototype.updateRowHeights = function (height) {
6661
6669
  if (this.tickSize.height !== height) {
6662
6670
  this.tickSize.height = height;
6671
+ var leftPosition = this.taskAreaContainer.scrollLeft;
6663
6672
  this.resetAndUpdate();
6673
+ this.taskAreaContainer.scrollLeft = leftPosition;
6664
6674
  }
6665
6675
  };
6666
6676
  GanttView.prototype.selectTask = function (id) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * DevExpress Gantt (dx-gantt.min)
3
- * Version: 2.0.7
4
- * Build date: Tue Nov 17 2020
3
+ * Version: 2.0.8
4
+ * Build date: Wed Nov 18 2020
5
5
  *
6
6
  * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED
7
7
  * Read about DevExpress licensing here: https://www.devexpress.com/Support/EULAs