@progress/kendo-angular-gantt 2.1.0-dev.202211250900 → 2.1.0

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.
@@ -9,7 +9,7 @@ export const packageMetadata = {
9
9
  name: '@progress/kendo-angular-gantt',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1669366722,
12
+ publishDate: 1669798501,
13
13
  version: '',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
15
15
  };
@@ -59,7 +59,7 @@ export class GanttTaskBase {
59
59
  if (this.activeView === 'year') {
60
60
  const monthsDiff = Math.max(getTotalMonthsInBetween(taskStart, taskEnd), 0);
61
61
  const totalDaysInStartMonth = getTotalDaysInMonth(taskStart);
62
- if (monthsDiff > 0) {
62
+ if (monthsDiff > 0 || (monthsDiff === 0 && taskStart.getMonth() !== taskEnd.getMonth())) {
63
63
  const startFraction = (totalDaysInStartMonth - taskStart.getDate()) / totalDaysInStartMonth;
64
64
  const endFraction = taskEnd.getDate() / getTotalDaysInMonth(taskEnd);
65
65
  return (startFraction + monthsDiff + endFraction) * this.slotWidth;
@@ -47,7 +47,7 @@ const packageMetadata = {
47
47
  name: '@progress/kendo-angular-gantt',
48
48
  productName: 'Kendo UI for Angular',
49
49
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
50
- publishDate: 1669366722,
50
+ publishDate: 1669798501,
51
51
  version: '',
52
52
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
53
53
  };
@@ -1432,7 +1432,7 @@ class GanttTaskBase {
1432
1432
  if (this.activeView === 'year') {
1433
1433
  const monthsDiff = Math.max(getTotalMonthsInBetween(taskStart, taskEnd), 0);
1434
1434
  const totalDaysInStartMonth = getTotalDaysInMonth(taskStart);
1435
- if (monthsDiff > 0) {
1435
+ if (monthsDiff > 0 || (monthsDiff === 0 && taskStart.getMonth() !== taskEnd.getMonth())) {
1436
1436
  const startFraction = (totalDaysInStartMonth - taskStart.getDate()) / totalDaysInStartMonth;
1437
1437
  const endFraction = taskEnd.getDate() / getTotalDaysInMonth(taskEnd);
1438
1438
  return (startFraction + monthsDiff + endFraction) * this.slotWidth;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-gantt",
3
- "version": "2.1.0-dev.202211250900",
3
+ "version": "2.1.0",
4
4
  "description": "Kendo UI Angular Gantt",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",