-
-
Notifications
You must be signed in to change notification settings - Fork 92
Document how to expand a parent node based on its children, remove expandParent
from docs
#760
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Same issue on |
We decided not to implement parentExpand in Svelte Flow because the feature is flawed in many ways and makes things just far too complicated. Is this functionality what you are after? https://codesandbox.io/p/sandbox/boring-poitras-x5z223 I will make it an official example once I have ported it - should work pretty much the same way in Svelte Flow. |
Thank you for the clarification.
Yes - exactly. Will take a look 👍 |
Good point! Will fix it! |
If relevant: this is a very basic svelte-5 example for that functionality => https://stackblitz.com/edit/x75pr7nk-9bgtirai Note: I'm not that experienced in using Svelte and xyflow. I'm sure it can be optimized.. (; |
I've extended the example to include a resizable node. What's interesting is that it works fine when resizing to the right or bottom. But to the top or left will result in something of a 'feedback loop' and the node and its parent 'fly off in the abyss' ^^ |
expandParent
from docs
What platform were you using when you found the bug?
Live code example
https://stackblitz.com/edit/x75pr7nk-f4atnmyp
Describe the Bug
If
expandParent: true
is set for node2a
for the official docs-example - it does not work.The same example for reactflow works as expected.
Steps to reproduce the bug or issue
expandParent: true
to the child-nodeExpected behavior
expandParent
to work as seen in reactflow.Screenshots or Videos
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: