diff options
| author | Alon Levy <alon@pobox.com> | 2015-07-30 18:04:57 +0300 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-07-30 18:04:57 +0300 |
| commit | 4a30ef3c352ebe70c3e6f1af4a728d3f82c3c2a8 (patch) | |
| tree | ad43ae5dc9b4588259019f236f094a659052ef93 /src/client/view | |
| parent | ec899fb5dbbe39f45f5dcc47ea39df3a38f2229f (diff) | |
Revert "wip: find the nan for position update from db"
This reverts commit ec899fb5dbbe39f45f5dcc47ea39df3a38f2229f.
Diffstat (limited to 'src/client/view')
| -rw-r--r-- | src/client/view/graph_view.js | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/client/view/graph_view.js b/src/client/view/graph_view.js index b3938075..da0a3435 100644 --- a/src/client/view/graph_view.js +++ b/src/client/view/graph_view.js @@ -213,18 +213,15 @@ function GraphView(spec) { if (layout.name && diff.node_set_add) { diff.node_set_add.forEach(function (node) { if (node[layout_x_key] && node[layout_y_key]) { - node.px = node.x = node[layout_x_key]; - node.py = node.y = node[layout_y_key]; + node.x = node[layout_x_key]; + node.y = node[layout_y_key]; have_position += 1; } }); if (have_position > 0) { console.log('loading layout last position from database for layout ' + layout.name); layout__load_graph(); - if (have_position == graph.nodes().length) { - console.log('no relayout because diff contains all graph nodes'); - relayout = false; - } + relayout = false; } } update_view(relayout); |
