Skip to main content
Apr 10, 2021 9:44 PM UTC
Solved

Borders are not included in the size of frames

Adding, for example, 1px borders does not increase the size of the frame.
It makes designing websites where “box-sizing: border-box” just not accurate with how browser compute the width and height.
How do you go around this behavior ?
for me, I add extra 1px padding around the frame (I also have to be using auto-layout).

This topic has been closed for replies.
Daniel_Cullinan
Active Member
Oct 12, 2023 11:13 AM UTC

It works in Figma, you just need to choose 'Strokes: Included in layout" from the Auto layout options:

22 replies

hainena
New Member
Jun 24, 2024 4:59 PM UTC


This is my current understanding of the problem. I imagine that I’m missing something, but this is becoming confusing. Anyone have any updates or advice on this? (The “Intended/Not Intended” part was for the developers I share with. I NEVER change assets to use “Included in layout”, so I don’t know what to do and just wanted to express that)

hainena
New Member
Jun 28, 2024 6:25 PM UTC


Video of the problem/confusion I’m running into. Any advice greatly appreciated.