Skip to main content

"Ignore Padding" option for Autolayout objects

  • January 18, 2022
  • 1 reply
  • 3110 views

RizePoint_Product

When working with Autolayout there are often cases where I want something (like a divider) to span the full width of its parent frame while other objects (like input fields, text, etc) should be inset from the edge of the frame.

Accomplishing this with current functionality involves:

  1. Setting the parent autolayout frame’s padding to 0
  2. Wrapping the content that should respect padding in its own autolayout frame
  3. Setting the padding of this new frame to whatever the correct padding should be
  4. Setting the width of the item that should span the full width of the parent to “fill container”

Which sounds simple, but multiply that same process across multiple objects multiple times a day and the tedium adds up quickly. Plus, it makes adjusting padding a pain later on, as you have to drill down past the parent to find the frame that’s actually controlling the padding–and on more complex components, that equals a LOT of extra clicks.

It would save me so much time to have the ability to toggle on/off “ignore padding” on an individual object or frame versus doing what I described above. It would greatly streamline my Figma files as well.

As a stopgap, has anyone found a more elegant way around the issue? At least with my experimenting, what I’ve described is the only solve I’ve found.

This topic has been closed for replies.

1 reply

  • 0 replies
  • February 17, 2022

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.


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