Skip to content
This repository has been archived by the owner on Oct 29, 2019. It is now read-only.

Commit

Permalink
Update: fix only trace bug (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
TinyAllen authored and wu-sheng committed Jan 18, 2019
1 parent b7fdaf2 commit c44642f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/TraceTree/d3-trace.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default class TraceMap {
this.i = 0;
this.j = 0;
this.width = el.clientWidth;
this.height = (row.length - 1) * 80;
this.height = row.length * 80 + 20;
this.body = d3
.select(this.el)
.style('height', this.height + 'px')
Expand Down Expand Up @@ -66,7 +66,7 @@ export default class TraceMap {
.scaleSequential()
.domain([0, this.list.length])
.interpolator(d3.interpolateCool);
this.svg = this.body.append('g').attr('transform', d => `translate(0, ${this.row.length * 14})`).append('g');
this.svg = this.body.append('g').attr('transform', d => `translate(0, ${this.row.length * 14 + 20})`).append('g');
this.timeGroup = this.body.append('g').attr('class','timeGroup').attr('transform', d => 'translate(5,30)');
this.body.call(this.getZoomBehavior(this.svg));
this.root = d3.hierarchy(this.data, d => d.children);
Expand Down

0 comments on commit c44642f

Please sign in to comment.