From 0444ee4e456b47726b82489a2d3c292efa0b8ca2 Mon Sep 17 00:00:00 2001 From: = Date: Wed, 8 Jul 2020 16:36:30 +0200 Subject: [PATCH] fix compression row --- .../app_modules_thermo/processo/components/gantt/gantt-row.ts | 3 ++- .../app_modules_thermo/processo/components/gantt/gantt-row.vue | 3 +-- .../src/app_modules_thermo/processo/components/gantt/gantt.vue | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/gantt/gantt-row.ts b/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/gantt/gantt-row.ts index 17b0d901..dc637e74 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/gantt/gantt-row.ts +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/gantt/gantt-row.ts @@ -61,7 +61,8 @@ export default class GanttRow extends Vue { if (!myrow) rows.push(myrow = []); // inserisco il mio blocco per occupare la posizione - myrow.push({ from: myStartPosition, to: myEndPosition, id: block.id }); + if (block.visible) + myrow.push({ from: myStartPosition, to: myEndPosition, id: block.id }); // la posizione verticale รจ al posizione della riga nell'elenco delle righe. return rows.indexOf(myrow) * (this.ganttOptions.elementHeight + this.ganttOptions.elementPadding * 2); diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/gantt/gantt-row.vue b/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/gantt/gantt-row.vue index c4fb4482..b4046dbf 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/gantt/gantt-row.vue +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/gantt/gantt-row.vue @@ -3,9 +3,8 @@ -