Skip to main content
Solved

Button size is not dynamic


Matthias4

Hey Friends 🙋‍♂️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?? 😦

Cheers 😉

Best answer by Alexis_Riols

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

View original
This topic has been closed for comments

Alexis_Riols

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 👇

Let me know if that solves your resizing problem?


Matthias4

Hi Alexis,

thanks for your reply 🙂

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 😦


Alexis_Riols

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 😉


tank666

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


Matthias4

For sure:

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


Alexis_Riols

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


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