diff --git a/src/GGanttBar.vue b/src/GGanttBar.vue index 788dd6c..8944794 100644 --- a/src/GGanttBar.vue +++ b/src/GGanttBar.vue @@ -363,7 +363,7 @@ export default { } } } else if (isSqueezeToLeft) { - otherBars = this.allBarsInRow.slice(0, -currentIndex) + otherBars = this.allBarsInRow.slice(0, currentIndex) if (otherBars.length) { let otherBarTotalWidth = otherBars .map((bar) => this.getBarWidth(bar))