summaryrefslogtreecommitdiff
path: root/src/client/view/graph_view.js
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2015-04-05 17:06:29 +0300
committerAlon Levy <alon@pobox.com>2015-04-05 17:06:29 +0300
commit40db8160e7f84e80a37d1ff45789f68bfbb60d60 (patch)
tree92e5755b75330620bad0f6fb9799507f0c5677b0 /src/client/view/graph_view.js
parent9f21a23fd95dd77fbe5d87d02fc5b87ad2765c09 (diff)
client/graph_view: reset fixed before restoring a new layout (not actually required, except if a new node was introduced)
Diffstat (limited to 'src/client/view/graph_view.js')
-rw-r--r--src/client/view/graph_view.js4
1 files changed, 4 insertions, 0 deletions
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)