gantt-task-react-powern 0.4.74 → 0.4.75

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/index.js CHANGED
@@ -1564,7 +1564,11 @@ var taskXCoordinate = function taskXCoordinate(xDate, dates, columnWidth) {
1564
1564
  }) - 1;
1565
1565
 
1566
1566
  if (index < 0) {
1567
- return 0;
1567
+ if (dates[dates.length - 1].getTime() < xDate.getTime()) {
1568
+ return dates.length * columnWidth;
1569
+ } else {
1570
+ return 0;
1571
+ }
1568
1572
  }
1569
1573
 
1570
1574
  var remainderMillis = xDate.getTime() - dates[index].getTime();