Skip to main content
cyrezeraser
New Participant
Mar 15, 2023 4:18 PM UTC
Solved

Constraints not showing for an auto layout frame

I looked on the forum for this existing topic and it said the top most object has to be a frame to see the constraints panel for it. However, I have this autolayout as a frame for the top level and I don’t get the constraints menu on the right hand side. Any ideas?

This topic has been closed for replies.
Haroll
HarollSolution
Figma Ambassador
Mar 15, 2023 4:39 PM UTC

Hi @cyrezeraser
If you want to use the constrains panel (as shown below) you will need to remove the auto-layout on the frame
image

Auto-layout Frame don’t behave according to the constraints of a Frame but with its own heigh and width value :
image

Either you can

  • Remove the auto-layout from Frame 48095639 and then use the constraints panel to set left and right constraint
  • change the horizontal space between items in the Frame 48095639 (for auto so it will add space evenly between items)

Let me know if it helps

Figma’s Forum Ambassador

6 replies

cyrezeraser
New Participant
Mar 15, 2023 4:23 PM UTC

I should note what I’m trying to do is put the icon, the personal account/send text, and then the right arrow into an auto-layout frame which I can then set constraints to left and right to make it responsive. I made the three elements inside the frame (left, middle and right) auto layout frames themselves and then put them inside of an auto layout frame so they would flex with the width of the artboard but constraints isn’t working.

Haroll
Figma Ambassador
HarollSolution
Figma Ambassador
Mar 15, 2023 4:39 PM UTC

Hi @cyrezeraser
If you want to use the constrains panel (as shown below) you will need to remove the auto-layout on the frame
image

Auto-layout Frame don’t behave according to the constraints of a Frame but with its own heigh and width value :
image

Either you can

  • Remove the auto-layout from Frame 48095639 and then use the constraints panel to set left and right constraint
  • change the horizontal space between items in the Frame 48095639 (for auto so it will add space evenly between items)

Let me know if it helps

Figma’s Forum Ambassador
cyrezeraser
New Participant
Mar 17, 2023 2:06 PM UTC

Hey Haroll,

Im a little confused on how this works. I just tried putting an auto layout frame on two text layers I created.

It doesn’t show the constraints panel for these two layers being in an auto layout frame. The text layers aren’t in any other frames themselves, just in the parent frame they are nested in. Sometimes the constraints panel shows up and sometimes it doesn’t and I can’t figure out why it doesn’t show half the time.

Mar 2, 2024 6:04 PM UTC

Does not have any sense to remove auto-layout 😦

Haroll
Figma Ambassador
Figma Ambassador
Mar 4, 2024 9:32 AM UTC

Hi @cyrezeraser

I’m sorry I did not ses you responded. If you still looking for an answer :
Constraint panel is only displayed if your frame isn’t an auto layout, so on your second screenshot you can see (half) of the auto layout section


More informations

For a classic frame you will have a constrain section on its children (as shown on the left) and for an auto layout you will have an auto layout section (on the right)

The main difference between the two of them is that :

  • in an auto layout you will manage the behavior of elements inside from the auto layout frame, as a whole (one set of instruction that will apply to every direct children),
  • while in a classic frame you need to select the element inside to manage their behaviors independently
Figma’s Forum Ambassador
Haroll
Figma Ambassador
Figma Ambassador
Mar 4, 2024 9:37 AM UTC

Hey @William_guerra

I mean both ways work, so it really comes down to personal preference

Figma’s Forum Ambassador