Create a seamless transition. (#26745)
Signed-off-by: Youssef Awichawi <youssef3wi@icloud.com>
This commit is contained in:
parent
767ae13db4
commit
25132477a3
1 changed files with 1 additions and 1 deletions
|
@ -273,7 +273,7 @@ export const FlowDiagram = ({
|
||||||
}, [expandableList]);
|
}, [expandableList]);
|
||||||
|
|
||||||
const onInit = (reactFlowInstance: ReactFlowInstance) =>
|
const onInit = (reactFlowInstance: ReactFlowInstance) =>
|
||||||
reactFlowInstance.fitView();
|
reactFlowInstance.fitView({ duration: 100 });
|
||||||
|
|
||||||
const onNodeClick: NodeMouseHandler = () => {
|
const onNodeClick: NodeMouseHandler = () => {
|
||||||
setExpandDrawer(!expandDrawer);
|
setExpandDrawer(!expandDrawer);
|
||||||
|
|
Loading…
Reference in a new issue