Heyy,
Â
I have a card component with an icon container that I would like to switch with an asset container.
Â
The icon container is a component with hug attributes. It contain an icon inside with a height defined with variable and a lock on aspect ratio.
The asset container is a component with a width in hug and a height attribute defined with a variable. It contain an asset inside with a fill height and a hug width.
Â
I would like to switch the icon container with an asset container in my card.
When I’m switching the instance, the sizes and height are broken.Â
I would like the height of my component to have the default size of the swapped instance but it’s keeping the original component size.
Â
To be honest I don’t understand the behaviour and don’t know if I need to built my component differently.
Â
Thanks !
Â
I added a video explaining the behaviour
Â
Â
Â

