How to move surrounding nodes on user input event

Hi!

I’m looking for something like when Group is getting expanded surrounding nodes are moved according to the newly occupied area by expanded Group, I’m wondering how to perform that for example when one node is replaced with another bigger size node and it happened in context of InputEvent.

Thanks

The arrangement of Nodes (which includes Groups) is often the responsibility of a Layout.

See for example:
Grouping
Regrouping Demo
Parallel Layout

Have you set Diagram.layout? If so, how is the behavior not what you want?

If not, could you do so? For example: Automatically Shift Nodes Aside Righward to Make Room

Alternatively, consider: Simple Shifting of Nodes to Avoid Overlapping with Groups