diff --git a/client/app/scripts/charts/nodes-layout.js b/client/app/scripts/charts/nodes-layout.js index 456b87dbf..5a6011789 100644 --- a/client/app/scripts/charts/nodes-layout.js +++ b/client/app/scripts/charts/nodes-layout.js @@ -93,6 +93,9 @@ const doLayout = function(nodes, edges, width, height, scale, margins, topologyI point.y += offsetY; }); edge.points = graphEdge.points; + // set beginning and end points to node coordinates to ignore node bounding box + edge.points[0] = {x: edge.source.x, y: edge.source.y}; + edge.points[edge.points.length - 1] = {x: edge.target.x, y: edge.target.y}; }); // return object with the width and height of layout