Nesting parent dynamic size fit to children #219
-
Hi, Is it possible to have parent shrink og expand to the size of the children's inside it and their positions? So when ever a user is moving a child, parent either expand or decrease in size |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
It is possible to expand the parent (using the const nodes = ref([
{
id: '1',
label: 'Node 1',
position: { x: 0, y: 0 }
},
{
id: '1a',
label: 'Node 1a',
position: { x: 0, y: 0 },
expandParent: true
}
]) Currently it is not possible, using a built-in mechanism, to collapse the same parent again. |
Beta Was this translation helpful? Give feedback.
-
Thx for the comment, I'll try to find a way to do this properly and create
a PR
…On Sun, 11 May 2025, 21:04 Braks, ***@***.***> wrote:
No this feature simply has 0 priority.
If you want it, feel free to implement it and suggest an example for the
docs or open a PR but it’s not going to land anytime soon since VueFlow 2.0
is priority atm and already is overdue.
As the sole maintainer of VueFlow my time is limited since I also work a
regular job and have a private life as well.
—
Reply to this email directly, view it on GitHub
<#219 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA6IIBP4YSM442YKO5NETST256GK5AVCNFSM6AAAAAB44HUASCVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTGMJQHA4TANA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
It is possible to expand the parent (using the
expandParent
property on your child node)Currently it is not possible, using a built-in mechanism, to collapse the same parent again.
That's something you would have to implement yourself (might be a feature in a future release but there's no plans yet).