2
0
mirror of https://github.com/tenrok/vue-ganttastic.git synced 2026-06-23 20:50:34 +03:00

fix: can't squeeze bar to left in some case

This commit is contained in:
yicone
2021-02-23 18:48:14 +08:00
parent c64880696e
commit b9d89468bf
+1 -1
View File
@@ -363,7 +363,7 @@ export default {
} }
} }
} else if (isSqueezeToLeft) { } else if (isSqueezeToLeft) {
otherBars = this.allBarsInRow.slice(0, -currentIndex) otherBars = this.allBarsInRow.slice(0, currentIndex)
if (otherBars.length) { if (otherBars.length) {
let otherBarTotalWidth = otherBars let otherBarTotalWidth = otherBars
.map((bar) => this.getBarWidth(bar)) .map((bar) => this.getBarWidth(bar))