Element to align rightmost when another element disappears

I’m trying to figure out how to make elements move horizontally according to their alignment rule, whenever another element becomes invisible.

For instance:

I want blue to go to the right whenever green is invisible, and go back to its position when green comes back.

Both green and blue have a right alignment:

2020-04-05 (3)

But on toggling green, blue doesn’t move:

What’s the trick to make this work as intended?

Thanks for helping.

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.