mirror of
https://github.com/openziti/zrok.git
synced 2024-11-22 16:13:47 +01:00
constrain max zoom for view fitting
This commit is contained in:
parent
17a1455d52
commit
055167b644
@ -21,7 +21,7 @@ const Network = () => {
|
||||
let g = buildGraph(resp.data)
|
||||
setNodes(getLayout(g))
|
||||
setEdges(g.edges)
|
||||
reactFlow.fitView()
|
||||
reactFlow.fitView({maxZoom: 1})
|
||||
}
|
||||
});
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user