Skip to main content
Question

Absolute positioned object with constraints not scaling with Auto Layout


ASMarly

The title says it all. When I scale a frame with Auto Layout and I have something with a constraint, it won’t move or scale, and just stay there.

This topic has been closed for comments

12 replies

tank666
  • 4859 replies
  • November 2, 2022

Could you demonstrate it on a video or send a link to a file?


ASMarly
  • Author
  • 6 replies
  • November 4, 2022

Sorry for being late but this is the file.


tank666
  • 4859 replies
  • November 4, 2022

Thanks for the link to the file.

So, I’ll start with the fact that there is no interactive components bug here, because there are no interactive components in the file.

Also, since the parent frame has a fixed width and height, and the text layer is set to hug, this is expected behavior. If you don’t want the text to go beyond the auto layout, then set it to “Fill container” instead of “Hug content”.

But the most important question is: why are you using an object with an absolute position?


ASMarly
  • Author
  • 6 replies
  • November 4, 2022

the parent frame is supposed to be a hug width and height but i forgot to change it when linking, also i couldn’t find the right spot to put it in.
the reason im using an object with an absolute position is so text stays in front, because i changed it to show off what was happening.


tank666
  • 4859 replies
  • November 4, 2022

Could you show a screenshot of what it should look like? I still don’t understand what result you expect.


ASMarly
  • Author
  • 6 replies
  • November 4, 2022

ill show with another file using another thingy or whatever i should say. its sort of overflowing. heres a comparison of what is correct and what isn’t


tank666
  • 4859 replies
  • November 4, 2022

Set “Hug content” for the auto layout that contains the text and “Hug content” for the text layer. Or, if your object is fixed width, then set “Fill container” for the text layer.


ASMarly
  • Author
  • 6 replies
  • November 4, 2022

i’ve done exactly that. this is the file tree thing:
image


ASMarly
  • Author
  • 6 replies
  • November 4, 2022

maybe you could try making your own speech bubble like what im doing?


tank666
  • 4859 replies
  • November 4, 2022

Ah, you’re using Union. Okay, look at the file:

Figma – 4 Nov 22

ASMarly
  • Author
  • 6 replies
  • November 4, 2022

thank you for helping me! i never would have figured this out.


  • 0 replies
  • December 4, 2022

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings