Skip to main content
Daraa_Design_Team
Active Member
July 21, 2024
Question

Layers While Hugging

  • July 21, 2024
  • 4 replies
  • 75 views

Is there a way to have 2 frames in a parent where the parent still responsively hugs both children?

For example, I’m trying to create a button, but I want more control over the state layer separate from the label frame. But… I still want state layer’s width to change. I cannot figure out how to make the frames separate, but “equal”

This topic has been closed for replies.

4 replies

y_toku
Figmate
Community Support
July 23, 2024

Hi there,

Thanks for reaching out. Probably, I’m not understanding correctly so please let me confirm if my understanding is correct, would you like to achieve this type of things?

If not, could you give a bit of more details about what you’re trying to achieve?

Thanks,
Toku

Daraa_Design_Team
Active Member
July 23, 2024

Very close.

So i want to do frame1 over frame1a and frame1b where the two children fill frame1 and frame1’s width hugs its children equally.

Right now you can only hug at most 1 child.

I want to do this so I can have button arround scrim and text frame and set scrim frame opacity to a variable without affecting the text opacity.

This way I can have my state layers set variables

y_toku
Figmate
Community Support
July 24, 2024
Daraa_Design_Team
Active Member
July 24, 2024

Thank you so much. This is helpful. Very much appreciated 🙏t6: