mirror of
https://github.com/tenrok/vue-ganttastic.git
synced 2026-06-23 21:50:32 +03:00
fix: can't squeeze bar to left in some case
This commit is contained in:
+1
-1
@@ -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))
|
||||||
|
|||||||
Reference in New Issue
Block a user