refactor(fitView): use same fitView function for viewport helper and initial prop
This commit is contained in:
@@ -69,7 +69,7 @@ const ControlledUncontrolled = () => {
|
||||
onNodesChange={onNodesChange}
|
||||
onEdgesChange={onEdgesChange}
|
||||
defaultEdgeOptions={defaultEdgeOptions}
|
||||
fitViewOnInit
|
||||
fitView
|
||||
>
|
||||
<Background variant={BackgroundVariant.Lines} />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user