From 0bb71fd37455c1288a2304a1862f97687c23f4a8 Mon Sep 17 00:00:00 2001 From: jos Date: Thu, 5 Jun 2014 15:40:58 +0200 Subject: [PATCH] A fix in the height of the vertical grid lines --- src/timeline/component/TimeAxis.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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