
You can still apply constraints to the auto layout frame itself if it's nested within a regular frame. Instead, you can use the resizing property to define how objects respond as the frame, or the objects in the frame, resize. You can't apply constraints to child objects in an auto layout frame, unless the object has absolute position ↓ enabled. Objects in an auto layout frame set to Fill container stretch to the width and/or height of their parent frame.

Note: If any child objects within an auto layout frame are set to Fill container, the parent frame will no longer hug contents and become Fixed for the axis. Or entering 1,2 sets the values to top/bottom: 1 and left/right: 2. Or, use CSS shorthand to set individual values.įor example, entering 1,2,3,4 sets the values to top: 1, right: 2, bottom: 3, and left: 4 respectively. Enter a single value to set uniform padding on all sides. Hold ⌘ Command for Mac, or Control for Windows, and click into any padding box.Four fields will appear for top, right, bottom, and left padding You can still set uniform padding or independent padding. In the right sidebar, the padding controls are separated into vertical and horizontal padding by default, where vertical includes the top and bottom padding and horizontal includes left and right. Hold ⇧ Shift ⌥ Option while dragging handles to change padding uniformly, on all sides.Hold ⌥ Option while dragging handles to change padding for opposite sides.Hold ⇧ Shift while dragging handles to increase and decrease using big nudge values.Pink handles will appear, similar to those in smart selection. To use canvas controls, select the auto layout frame and hover over it on the canvas. You can set padding uniformly, vertically and horizontally, or have different values for top, right, bottom, and left padding.Īdjust the padding using canvas controls or spacing fields in the right sidebar.

Padding controls the empty or white space between the boundary of an auto layout frame and the frame’s child objects. To use the spacing fields in the Auto layout section of the right sidebar:Įnter a number in the field, nudge the values using your arrow keys, or scrub the field using your cursor. Tip! Hold ⇧ Shift while dragging handles to increase and decrease using your big nudge values.


When you apply auto layout, you'll see some changes in the right sidebar. Explore the auto layout playground file in the Figma Community →įrames with auto layout have different properties to regular frames.
