fix: physics no longer reset when the layout change

pull/3154/head
Sami Mokaddem 2018-03-27 13:57:27 +00:00
parent 4486c71c58
commit 272f5228e9
1 changed files with 1 additions and 0 deletions

View File

@ -211,6 +211,7 @@ class EventGraph {
physics_state(state) {
var that = eventGraph;
that.network_options.physics.enabled = state;
that.network.setOptions({physics: { enabled: state} })
}