reset zoom & focus when opening a new workflow

This commit is contained in:
David Mosbach 2023-06-03 18:37:51 +02:00
parent 052e4742f5
commit f66a6247bb

View File

@ -263,6 +263,8 @@ function defineOnClick(item, url, title) {
workflow[key] = data[key];
prepareWorkflow();
updateGraph();
wfGraph.centerAt(0, 0, 400);
wfGraph.zoom(1, 400);
document.getElementById('filename').innerText = title;
document.title = title + ' | Editor';
});