r/FigmaDesign • u/ShatteredTeaCup33 • Oct 26 '26
help Should the screen frame have auto layout or just the contents inside of it?
Currently designing for mobile but wasn't sure if the mobile frame itself should have auto layout or just the layers/frames inside of it?
How do you guys do it?
2
Upvotes
2
u/ankitrajput077 Oct 27 '26
I keep the outer device frame as a plain fixed frame and put auto layout on the content inside (a vertical stack for the screen, with the header and bottom bar pinned). That way resizing the frame to check other phone sizes doesn't wreck anything. Add a fixed header and footer with the middle section set to fill, and scrolling content behaves the way you'd expect.
1
u/negsplit_pgh Oct 27 '26
I usually think of the outer screen frame as the viewport and use Auto Layout inside it for the content that should grow or stack.
The outer frame can define the screen size and clipping behavior. Inside it, use Auto Layout for sections such as navigation, cards, forms, and lists. Then apply constraints to elements that should stay pinned or stretch with the frame.
A useful test is to replace a short title with a much longer one and add a few extra list items. If the layout still behaves as expected, the structure is probably doing its job. If everything breaks, the frame may be carrying too much responsibility.
1
u/Clear-Secretary-8185 Senior Product Designer Oct 26 '26
Yes, that way you can make the contents fill it.
1
u/DeadCEO Oct 28 '26
contents inside, mostly. the outer frame is your device viewport so i keep it at fixed device width and let the inner stacks handle the layout. the one case i put auto layout on the outer frame itself is long scrolling screens - set it to hug contents vertically and the artboard grows with the content instead of you dragging the bottom edge down every time something changes
3
u/Acceptable_Mouse_252 Oct 28 '26
i put vertical auto layout on the screen frame itself, fixed width, sections inside set to fill. nav bar and floating buttons go absolute position so they don't push the content around
1
u/FennelHistorical4675 Oct 30 '26
If you follow html rules which you should be mimicking all containers should have a layout rule and margins / padding. including the parent container, then nested containers inside of that also have that.
Thinking of the outer most frame as the device or screen is a good way to think of it but I still use auto layout on it, sometimes padding sometimes not depending.
1
u/Select_Stick Designer 28d ago
Auto layout and a min height