From 4218f8fdf7c47ce8b8baa8f6fd2b95f1d93f358a Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Tue, 24 Mar 2015 17:26:27 +0200 Subject: client/view/graph_view: force recalculation of linkDistance on each force__load_graph --- src/client/view/graph_view.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/view/graph_view.js b/src/client/view/graph_view.js index 82e25ff7..cb7ba020 100644 --- a/src/client/view/graph_view.js +++ b/src/client/view/graph_view.js @@ -577,7 +577,8 @@ function GraphView(spec) { function force__load_graph() { force.nodes(graph.nodes().filter(node__is_shown)) - .links(graph.links().filter(link__is_shown)); + .links(graph.links().filter(link__is_shown)) + .start(); } function segment_in_segment(inner_low, inner_high, outer_low, outer_high) -- cgit v1.3.1