Auto Layout frame doesn't display properly when I present the prototype

Hello everyone,
I have created an auto layout with some components (as the image 1 below) and chose “hug content”.

The components can be hidden by toggles. When the components are hidden, the auto layout frame also shrink to fit the contents inside. It still works at this step (as you see in the image 2).
However, when I was trying to present the prototype, it seemed that the auto layout frame still remained the same size as before the components were hidden.

I know it is difficult to understand. Anyone can help me?

Hi there,

Thanks for reaching out. I’m trying to figure out what’s happening, but it looks hard without your file access. So, would you be able to share the file link with access to support-share@figma.com? It won’t affect your billing. I hope I can investigate it further.

Thanks,
Toku

@Nam_Tran_Le You are not using constraints and resizing properties correctly. Read through these two blogs thoroughly you should be able to resolve this issue by yourself.

  1. https://help.figma.com/hc/en-us/articles/360039957734-Apply-constraints-to-define-how-layers-resize

  2. https://help.figma.com/hc/en-us/articles/360040451373-Explore-auto-layout-properties#resizing

Hello Toku,
Thanks for spending your time to help me. I have shared the link to the email address above, and I have also leaved some text into the prototype to help you understand the problem easier.

Hi there, I’ve also thought about constraint or frame resizing, but I haven’t figured out how to fix it yet. Thanks for your links; I will read them carefully.