You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know why, but after the react render, the SVG, which is placed under the Canvas got a huge size such as : H: 2000px W:2000px
Based on the documentation, I've tried to change some properties but nothing happened.
Because of that, the Y and X scrolls appear without needing.
Here is my code:
` <Canvas
fit={true}
nodes={nodes}
edges={edges}
defaultPosition={CanvasPosition.TOP}
direction="RIGHT"
node={
<Node
style={{ stroke: '#1a192b', fill: 'white', strokeWidth: 1 }}
label={<Label style={{ fill: 'black' }} />}
port={<Port style={{ fill: 'blue', stroke: 'white' }} rx={10} ry={10} />}
/>
}
/>
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I don't know why, but after the react render, the SVG, which is placed under the Canvas got a huge size such as : H: 2000px W:2000px
Based on the documentation, I've tried to change some properties but nothing happened.
Because of that, the Y and X scrolls appear without needing.
Here is my code:
` <Canvas
fit={true}
nodes={nodes}
edges={edges}
defaultPosition={CanvasPosition.TOP}
direction="RIGHT"
node={
<Node
style={{ stroke: '#1a192b', fill: 'white', strokeWidth: 1 }}
label={<Label style={{ fill: 'black' }} />}
port={<Port style={{ fill: 'blue', stroke: 'white' }} rx={10} ry={10} />}
/>
}
/>
`
Beta Was this translation helpful? Give feedback.
All reactions