Skip to main content
Question

Parent component does not hug resize when nested instance swaps aspect ratio variant

  • January 9, 2026
  • 3 replies
  • 55 views

Edgaras_Benediktavicius

When a nested component instance switches between variants with different aspect ratios, the parent component set to Hug contents does not resize to match the child’s new dimensions. The parent keeps its previous size instead of wrapping the updated aspect ratio.


Screen recording: https://streamable.com/e/q0fuwh

--- 

Another weird behaviour / a hack-fix that kind of works:
Detaching the parent component instance temporarily fixes the issue: the parent immediately resizes to the currently selected aspect ratio. After undoing (Ctrl + Z) to restore the instance, aspect ratio swapping works correctly for a short time, but eventually the parent stops responding to aspect ratio changes again.

3 replies

Edgaras_Benediktavicius

Hi ​@djv just following up on this issue. It’s still happening when a nested component instance swaps aspect ratio variants: the parent set to Hug contents doesn’t resize correctly. Screen recording and examples are in the original post. Any guidance would be appreciated, thanks!


how did you do nested instances?

 


Edgaras_Benediktavicius

how did you do nested instances?

 

It’s simply a Media component that has aspect ratio props, and I nest it in FeaturedCard component


 



 


And the bug is that changing aspectRatio in FeaturedCard component doesn’t update the size of the FeaturedCard.