Skip to main content
Solved

Responsive text size when adjusting box/frame size on one side


Jasmint_Tan

Take a button for example. I understand there is a ‘scale tool’ for resizing the entire button including the text size inside. However, that usually changes button size as a whole (both height and width together). Attempting to move the button horizontally will only result in the text wrapping onto the next line instead.

Is there a way for me to resize the text when I’m only adjusting the button horizontally or vertically?
(e.g text becoming smaller when the button width is shorter)

I added a short clip to illustrate what I was describing. Hope it helps, thank you!

Best answer by ntfromchicago

@Jasmint_Tan Is this what you’re trying to do? If you use the scale tool on the text node in an Auto Layout frame with fixed height, I think you can achieve your use case (at least for horizontal text; not sure if this technique would work for vertical scaling). This won’t work at the component level without detaching the instance first, but this could be a workaround technique in a pinch.

View original
This topic has been closed for comments

10 replies

Gleb
  • Power Member
  • 4706 replies
  • February 5, 2021

No, there is no way to do that.


Steven
  • 122 replies
  • February 8, 2021

Currently, no way. I encourage you to open a Product ideas topic.


Jasmint_Tan
  • Author
  • 2 replies
  • February 9, 2021

Thank you for the responses! I’ll open a product idea topic 🙂


ntfromchicago
  • New Member
  • 287 replies
  • Answer
  • February 10, 2021

@Jasmint_Tan Is this what you’re trying to do? If you use the scale tool on the text node in an Auto Layout frame with fixed height, I think you can achieve your use case (at least for horizontal text; not sure if this technique would work for vertical scaling). This won’t work at the component level without detaching the instance first, but this could be a workaround technique in a pinch.


Jasmint_Tan
  • Author
  • 2 replies
  • February 10, 2021

Oh my god yes! Thank you so much for this creative solution 😁


Steven
  • 122 replies
  • February 10, 2021

Nice. Thank you 👌t4:


  • 1 reply
  • October 25, 2023

Hi there all.

Is this solution still valid in the current version of Figma? I get the instructions but either I’m not implementing them well or it’s no longer a solution as I can’t get it to work. Anybody still on this? I’d love some more explanation. Thanks!


akoskovacsme

Hey,

So, this solution is not an option if you work with components. Available for only “detached” components. 😦


Can you show us the properties panel with that you have setup to get this working like this ?


Ruby_Dao
  • 1 reply
  • February 21, 2024

Maybe you can try this =]

  • Step 1: select the rectangle > auto layout
  • Step 2: select the text layer > fill container (width), hug (height) and auto height

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