Skip to content

Commit

Permalink
zoom to viewport
Browse files Browse the repository at this point in the history
  • Loading branch information
till-stadtler committed May 13, 2024
1 parent 10916fb commit 7529c3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/ReactBpmn.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ export function ReactBpmn({ url }) {
bpmnViewer.importXML(bpmnXML);

bpmnViewer.on("import.done", (event) => {
// bpmnViewer.get("canvas").zoom("fit-viewport");
// bpmnViewer.get("zoomScroll").stepZoom(-0.2);
bpmnViewer.get("canvas").zoom("fit-viewport");
bpmnViewer.get("zoomScroll").stepZoom(-0.2);
});
}
}, [bpmnXML]);
Expand Down

0 comments on commit 7529c3d

Please sign in to comment.