diff options
| author | Alon Levy <alon@pobox.com> | 2015-08-09 14:20:23 +0300 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-08-09 14:20:23 +0300 |
| commit | 9fd7137edc8b4f24e2da8af487e093b05e9539f7 (patch) | |
| tree | 5b8f529899b41e8789c234ce7087b0fa62594e4b | |
| parent | 419f09f8417fc9a79dda3806656ba68526f1631a (diff) | |
client/view/graph_view: make sure layout is changed before we store positions, else we store positions for the old layout
| -rw-r--r-- | src/client/view/graph_view.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/view/graph_view.js b/src/client/view/graph_view.js index 05a16a29..c2e3c572 100644 --- a/src/client/view/graph_view.js +++ b/src/client/view/graph_view.js @@ -1252,7 +1252,8 @@ function GraphView(spec) { graph.nodes().forEach(function (node) { node.fixed = undefined; }); - layout = new_layout + layout = new_layout; + layout .size([w, h]) .on("tick", layout__tick__callback) .on("end", record_position_to_database) |
