Skip to main content
Question

Textbox won't resize properly in auto layout

  • May 21, 2024
  • 1 reply
  • 306 views

I’m trying to get the border-box to hug the text-box as shown in the bottom of the screenshot.
I’ve set the border-box and the text to hug. The border-box has a max-width of 275 px, so the text line-breaks when it goes beyond that size. I just want the to hug the actual text so that I have my 16pt. margins as specified in the auto-layout.

This topic has been closed for replies.

1 reply

y_toku
Figmate
  • Community Support
  • May 23, 2024

Hi there,

Thanks for the post! If I understand correctly, you can do so by setting fill contents for the text box:

You can learn more about the auto layout properties:

Figma Learn - Help Center

I hope this is helpful but please feel free to let us know if you have more questions!

Thanks,
Toku