correctly apply asymetric paddings

This commit is contained in:
peterkogo
2025-03-25 18:05:58 +01:00
parent 137b23c6a7
commit e3ecf999aa
2 changed files with 31 additions and 7 deletions

View File

@@ -147,7 +147,8 @@ const BasicFlow = () => {
maxZoom={4}
fitView
fitViewOptions={{
padding: ['30%', '10%', '10%', '20%'],
// top, right, bottom, left
padding: ['100px', '0%', '0%', '50px'],
}}
defaultEdgeOptions={defaultEdgeOptions}
selectNodesOnDrag={false}