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 faced with a problem when nested nodes lose their edges when scaling (scrolling). There is a codesandbox with an example of this bug. Also, I noticed, that g_0 node position is matter, if I place it with coordinates { x: 0, y: 0 }, this problem gone away. I saw a couple of similar issues, but seems like I have another one.
Also I'd like to ask you some noob questions:
Can I somehow make group nodes fit the content? Not only expand but also collapse, depending on children position inside.
Can I add some padding to group node?
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
Create nested groups (min 3)
Add a couple of nodes inside deepest group
Connect it somehow
Place the top group at { x: 0, y: 1100 }
Try to zoom
Expected behavior
Edges not disapear
Screenshots or Videos
No response
Platform
OS: Linux
Browser: Chrome
Version: ^10
Additional context
No response
The text was updated successfully, but these errors were encountered:
You can measure the bounding box of the children and set the group dimensions with style.width and style.height.
You can use the extent option for this. Let's say your group node is 300x200 and you want a 50px padding on top you could do extent=[[0,50],[300, 200]].
You can measure the bounding box of the children and set the group dimensions with style.width and style.height.
You can use the extent option for this. Let's say your group node is 300x200 and you want a 50px padding on top you could do extent=[[0,50],[300, 200]].
The first solution looks to me like a workaround. But the second one is just great! Both of them can be combined. Thanks a lot for the hint!
Describe the Bug
I faced with a problem when nested nodes lose their edges when scaling (scrolling). There is a codesandbox with an example of this bug. Also, I noticed, that g_0 node position is matter, if I place it with coordinates { x: 0, y: 0 }, this problem gone away. I saw a couple of similar issues, but seems like I have another one.
Also I'd like to ask you some
noobquestions:Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
Expected behavior
Edges not disapear
Screenshots or Videos
No response
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: