You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@skywalking.apache.org by yw...@apache.org on 2019/09/01 08:11:58 UTC

[skywalking-rocketbot-ui] branch master updated: fix trace detail tree chart zoom shift (#148)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 06a72fc  fix trace detail tree chart zoom shift (#148)
06a72fc is described below

commit 06a72fc51b304d9d64c573594206773c02815f84
Author: x22x22 <ro...@gmail.com>
AuthorDate: Sun Sep 1 16:11:53 2019 +0800

    fix trace detail tree chart zoom shift (#148)
    
    Fix the problem of chart drift after clicking "trace-detail-chart-tree.vue".
---
 src/views/components/trace/d3-trace-tree.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/views/components/trace/d3-trace-tree.js b/src/views/components/trace/d3-trace-tree.js
index fde9695..1530ae5 100644
--- a/src/views/components/trace/d3-trace-tree.js
+++ b/src/views/components/trace/d3-trace-tree.js
@@ -312,7 +312,7 @@ export default class TraceMap {
       .on('zoom', () => {
         g.attr(
           'transform',
-          `translate(${d3.event.transform.x},${d3.event.transform.y})scale(${d3.event.transform.k})`
+          `translate(${d3.event.transform.x + 120},${d3.event.transform.y})scale(${d3.event.transform.k})`
         );
       });
   }