浏览代码

update default canvas size

AykutSarac 2 年之前
父节点
当前提交
9a62707372
共有 1 个文件被更改,包括 2 次插入2 次删除
  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
             nodes={nodes}
             edges={edges}
-            maxWidth={size.width}
-            maxHeight={size.height}
+            maxWidth={size.width + 100}
+            maxHeight={size.height + 100}
             direction={layout}
             key={layout}
             onCanvasClick={onCanvasClick}