diff --git a/bzGantt.js b/bzGantt.js index a7218e0..040130e 100644 --- a/bzGantt.js +++ b/bzGantt.js @@ -160,8 +160,8 @@ class BZgantt extends Buildoz { flow.nodes.push({ "nodeType": "bar", "id": task.id, - "coords": { - "x": (startIdx * this.dayWidth) + (startIdx > 0 ? this.dayWidthPadding : 0), + "coords": { + "x": (startIdx * (this.dayWidth + this.dayWidthPadding)), "y": curY, }, "markup": markup