summaryrefslogtreecommitdiff
path: root/src/client/view/graph_view.js
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2015-01-21 14:58:32 +0200
committerAlon Levy <alon@pobox.com>2015-01-21 14:59:08 +0200
commit1594db29d2330effa71e9adfd78d0d7ecc10124b (patch)
tree6ee6e292f9b264a0fd26a088060f29d52d6ceac1 /src/client/view/graph_view.js
parentde731590ada4db90749a01b61b81774b91867696 (diff)
client: fix bubble not affecting link text
Diffstat (limited to 'src/client/view/graph_view.js')
-rw-r--r--src/client/view/graph_view.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/view/graph_view.js b/src/client/view/graph_view.js
index 0b336e64..b88dbb56 100644
--- a/src/client/view/graph_view.js
+++ b/src/client/view/graph_view.js
@@ -656,7 +656,7 @@ function GraphView(spec) {
});
linktext.attr("transform", function(d) {
- return "translate(" + (d.__src.x + d.__dst.x) / 2 + "," + (d.__src.y + d.__dst.y) / 2 + ")";
+ return "translate(" + (d.__src.bx + d.__dst.bx) / 2 + "," + (d.__src.by + d.__dst.by) / 2 + ")";
});
// After initial placement we can make the nodes visible.