Skip to main content
Question

How to effectively put a separate background layer in auto-layout for header of a form box

  • March 26, 2024
  • 1 reply
  • 426 views

I’m trying to put this gray “rectangle” background in the header of this form in Figma (right box). The container is set in auto layout already but every time I put in this gray rectangle, it treats it as another object and messes up the layout. I’ve also tried putting a fill behind the text box, but it doesn’t completely fill up the container because there’s padding (of 32 px right/left). Was wondering if you guys have run into this before and have a solution? 🤔

Please search for existing topics before posting! Press 🔍 at the upper right to search.

This topic has been closed for comments

1 reply

Haroll
  • Active Member
  • 273 replies
  • March 27, 2024

Hi @Cristine

Once the grey rectangle is in the auto layout frame, give it an absolute position (as shown below) and you’ll be able to place it anywhere you want regarding of the auto layout constraints – you might need to change its position in the treeview from leftpanel so it does not display above your form

Hope it helped


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