Skip to main content
Mark_Russell
New Member
September 16, 2026
Solved

Autolayout / fill calculating incorrectly?

  • September 16, 2026
  • 1 reply
  • 28 views

I feel like I’ve never seen this before today… in short, when using “fill” to define width or height of a frame, I am expecting the width or height to be evenly distributed, but it seems to be changing the width /height based on the padding within the frame.

Example: here is an autolayout frame holding 2 freeform frames, both of which are set to width=fill.

 

When I apply autolayout to the red frame, I would expect it to maintain its existing width (95px, defined by it being set to “fill” its parent along with the other frame) and apply whatever it decides the horizontal and vertical padding should be. At least, that’s what I think it’s done for the last 8/9 years…

But it doesn’t. It adds the width of the padding to the red frame, meaning the red and blue frames are now unequal widths (in this instance, figma decided the red frame should have 16px padding all round):

What this means is, I cannot have equal width frames within an autolayout frame if:

  • Any of them have inconsistent padding
  • Any of them don’t have autolayout applied
  • I want them both to automatically “fill” their parent without explicitly declaring a width for one of them

I am sure it’s never worked like this in the past… has something changed or am I just being stupid?

Best answer by Mark_Russell

EDIT: I’ve just realised this is due to the “updated” autolayout config. I guess I hadn’t noticed it until now because I don’t usually have inconsistent padding like this! Sorry, Don’t know how to close or delete this topic.

1 reply

Mark_Russell
Mark_RussellAuthorAnswer
New Member
September 16, 2026

EDIT: I’ve just realised this is due to the “updated” autolayout config. I guess I hadn’t noticed it until now because I don’t usually have inconsistent padding like this! Sorry, Don’t know how to close or delete this topic.