diff --git a/src/Timeline.js b/src/Timeline.js index a006e33..7b69dc8 100644 --- a/src/Timeline.js +++ b/src/Timeline.js @@ -297,6 +297,10 @@ export default class Timeline extends Axis { this._buttonAlign === "start" ? undefined : this._marginLeft + buttonMargin, this._buttonAlign === "end" ? undefined : marginRight - buttonMargin ]; + } + + if (this._buttonBehaviorCurrent === "ticks" && this._ticks) { + this._domain = [this._ticks[0], this._ticks[this._ticks.length - 1]]; } this._labels = this._ticks;