From 9fd7137edc8b4f24e2da8af487e093b05e9539f7 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Sun, 9 Aug 2015 14:20:23 +0300 Subject: client/view/graph_view: make sure layout is changed before we store positions, else we store positions for the old layout --- src/client/view/graph_view.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/client') 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) -- cgit v1.3.1