From b9d89468bfcdec7fa61daee066af3fc67dd131c8 Mon Sep 17 00:00:00 2001 From: yicone Date: Tue, 23 Feb 2021 18:48:14 +0800 Subject: [PATCH] fix: can't squeeze bar to left in some case --- src/GGanttBar.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))