diff --git a/src/timeline/component/TimeAxis.js b/src/timeline/component/TimeAxis.js index 46978ab1..76f9bba5 100644 --- a/src/timeline/component/TimeAxis.js +++ b/src/timeline/component/TimeAxis.js @@ -94,8 +94,8 @@ TimeAxis.prototype.repaint = function () { props.height = props.minorLabelHeight + props.majorLabelHeight; props.width = foreground.offsetWidth; - props.minorLineHeight = this.timeline.props.center.height + props.minorLabelHeight + - this.timeline.props.border.top + this.timeline.props.border.bottom; + props.minorLineHeight = this.timeline.props.root.height - props.majorLabelHeight - + (options.orientation == 'top' ? this.timeline.props.bottom.height : this.timeline.props.top.height); props.minorLineWidth = 1; // TODO: really calculate width props.majorLineHeight = props.minorLineHeight + props.majorLabelHeight; props.majorLineWidth = 1; // TODO: really calculate width