Browse Source

A fix in the height of the vertical grid lines

css_transitions
jos 10 years ago
parent
commit
0bb71fd374
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/timeline/component/TimeAxis.js

+ 2
- 2
src/timeline/component/TimeAxis.js View File

@ -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

Loading…
Cancel
Save