Browse Source

update default canvas size

AykutSarac 2 years ago
parent
commit
9a62707372
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/components/Graph/index.tsx

+ 2 - 2
src/components/Graph/index.tsx

@@ -99,8 +99,8 @@ export const Graph: React.FC<GraphProps & CanvasContainerProps> = ({
           <Canvas
           <Canvas
             nodes={nodes}
             nodes={nodes}
             edges={edges}
             edges={edges}
-            maxWidth={size.width}
-            maxHeight={size.height}
+            maxWidth={size.width + 100}
+            maxHeight={size.height + 100}
             direction={layout}
             direction={layout}
             key={layout}
             key={layout}
             onCanvasClick={onCanvasClick}
             onCanvasClick={onCanvasClick}