From 000e5ceaa4f7d3ae165b474299ddf5e4ce711a03 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Sat, 19 Oct 2013 20:03:22 -0400 Subject: [PATCH] Fix source of the links drawn in the image changes tree view --- static/js/graphing.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/static/js/graphing.js b/static/js/graphing.js index 615d2523f..43daa38ba 100644 --- a/static/js/graphing.js +++ b/static/js/graphing.js @@ -1030,7 +1030,11 @@ ImageFileChangeTree.prototype.update_ = function(source) { // Transition links to their new position. link.transition() .duration(duration) - .attr("d", diagonal); + .attr("d", function(d) { + var s = {x: d.source.x + 14, y: d.source.y + 9}; + var t = d.target; + return diagonal({source: s, target: t}); + }); // Transition exiting nodes to the parent's new position. link.exit().transition()