summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2015-07-30 12:29:51 +0300
committerAlon Levy <alon@pobox.com>2015-07-30 18:05:06 +0300
commit5ae8829ea0305c7f03edb2a901fbdd8653a09f24 (patch)
treefe2f467debfef5ab9db11578dd2ebe9f50395be4 /src
parentb3b6f63c180e815cd827fef49123ad7f54b57b98 (diff)
client/view/graph_view: position load: fix bug due to not calling d3.layout.start to initialize link lengths (linkStrength)
Diffstat (limited to 'src')
-rw-r--r--src/client/view/graph_view.js5
1 files 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();