From 5ae8829ea0305c7f03edb2a901fbdd8653a09f24 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Thu, 30 Jul 2015 12:29:51 +0300 Subject: client/view/graph_view: position load: fix bug due to not calling d3.layout.start to initialize link lengths (linkStrength) --- src/client/view/graph_view.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/client/view/graph_view.js b/src/client/view/graph_view.js index 0f7c1eaf..a55609ad 100644 --- a/src/client/view/graph_view.js +++ b/src/client/view/graph_view.js @@ -776,9 +776,8 @@ function GraphView(spec) { if (relayout) { layout__reset(0.1); } else { - // XXX If we are stopped we need to update the text of the links at least, - // and this is the simplest way - tick(); + layout.start().alpha(0.0001); + tick(); // this will be called before the end event is triggered by layout completing. } } else { start_layout_animation(); -- cgit v1.3.1