Skip to main content
Jorge_Montero_GFT
New Member
August 6, 2024
Question

Figma applies the Hugh Content to the width and height, but I only want to apply it to the width

  • August 6, 2024
  • 2 replies
  • 244 views

When I try to only apply the Hugh Content to the width, Figma applies it to the width and height, but I only want to apply it to the width.
Does anyone know how I can make it only apply to the width?

This topic has been closed for replies.

2 replies

Gleb
Power Member
August 6, 2024

This is a text layer, not an auto layout layer, so I’m surprised Figma made it possible to set it to hug through these controls in the UI which are normally meant for AL layers only.

Text can only be in 3 states in Figma:

  1. Fixed Width and Height
  2. Fixed Width, auto Height.
  3. Auto Width and auto Height (height will only change on line break).

You can switch between these states using controls here:

image

The state you want (Auto Width and Fixed Height) is not possible to set on text. You can set it on the outer Auto Layout frame and set all texts’ Widths to Fill Container.

Jorge_Montero_GFT
New Member
August 7, 2024

Thanks so much @Gleb !

Finally, i used Hugh x Hugh on Text and, Hugh x Fill on Parent, not the best way for dev, but good for visual