reset_view() fits network instead of moving to center only

pull/3063/head
Sami Mokaddem 2018-03-19 10:59:49 +00:00
parent 78743e2896
commit 0b0eddfcc0
1 changed files with 1 additions and 7 deletions

View File

@ -259,13 +259,7 @@ function update_graph(data) {
}
function reset_view() {
network.moveTo({
position: {
x: 0,
y: 0
},
animation: true,
});
network.fit({animation: true });
}
// Data