mirror of https://github.com/MISP/MISP
reset_view() fits network instead of moving to center only
parent
78743e2896
commit
0b0eddfcc0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue