This is an automated email from the ASF dual-hosted git repository.

wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-skywalking-ui.git


The following commit(s) were added to refs/heads/master by this push:
     new c44642f  Update: fix only trace bug (#222)
c44642f is described below

commit c44642f73b9f73a54b0d716cade5094304e1a67b
Author: Allen Wang <[email protected]>
AuthorDate: Fri Jan 18 11:27:57 2019 +0800

    Update: fix only trace bug (#222)
---
 src/components/TraceTree/d3-trace.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/components/TraceTree/d3-trace.js 
b/src/components/TraceTree/d3-trace.js
index 8f0461b..274e1ed 100644
--- a/src/components/TraceTree/d3-trace.js
+++ b/src/components/TraceTree/d3-trace.js
@@ -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')
@@ -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);

Reply via email to