Button size is not dynamic

Hey Friends :raising_hand_man:t2:

i need your help. I have designed a Button Component with some Variants (with Icon, Primary, Secondary, …)

The problem is, when i want to change the size of the button, the button itself don’t change.

Size is not dynamics

Someone can help me?? :frowning:

Cheers :wink:

Hi Matthias,

Check your structure, you should have Hug resize on the component like you have, but also on the content frame/autolayout inside it to fit with the manual resize of the component like that :point_down:

Let me know if that solves your resizing problem?

Hi Alexis,

thanks for your reply :slight_smile:

I tried it and set Hug Resize in horizontal on all struture, the component or variant, the content inside the component.

But as you can see, it is not possible to change the horizontal size :frowning:

Could you show me the “primary” layer to see what you set on it?

or send me the Figma link i will duplicate it and show you what’s broken :wink:

Based on your structure, you need to set the “Fill container” horizontally for the “Button” instance.


For sure:

if the screenshot doesn’t help you, I’m fine sharing the link.

Like @tank666 said, you need to set your “Button” layer with “Fill container”

1 Like