From 40db8160e7f84e80a37d1ff45789f68bfbb60d60 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Sun, 5 Apr 2015 17:06:29 +0300 Subject: client/graph_view: reset fixed before restoring a new layout (not actually required, except if a new node was introduced) --- src/client/view/graph_view.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/client/view/graph_view.js') diff --git a/src/client/view/graph_view.js b/src/client/view/graph_view.js index 42c96965..75bd8cef 100644 --- a/src/client/view/graph_view.js +++ b/src/client/view/graph_view.js @@ -1227,6 +1227,10 @@ function GraphView(spec) { layout.save(); layout.stop(); } + // remove fixed status, the fixed status is restored from the layout + graph.nodes().forEach(function (node) { + node.fixed = undefined; + }); layout = new_layout .size([w, h]) .on("tick", pushRedraw) -- cgit v1.3.1