What if your dashboard could magically adjust itself perfectly every time you resize the window?
Why Resizing rules (hug, fill, fixed) in Figma? - Purpose & Use Cases
Imagine you create a dashboard with charts and tables in a design tool. When you change the size of the dashboard window, you have to manually adjust each chart and table to fit the new space.
This manual resizing is slow and frustrating. You might forget to resize some elements, causing overlap or empty spaces. It wastes time and makes your dashboard look unprofessional.
Resizing rules like hug, fill, and fixed let your dashboard elements automatically adjust their size. They respond smartly when the window changes, saving you time and keeping your design neat.
Resize each chart manually every time window size changes
Set chart to 'fill' to auto-expand with window size
You can create flexible dashboards that look great on any screen size without extra work.
A sales dashboard that automatically resizes charts and tables when viewed on a laptop, tablet, or phone, ensuring clear and consistent data presentation.
Manual resizing wastes time and causes errors.
Resizing rules automate element size adjustments.
Flexible dashboards improve user experience across devices.
Practice
Solution
Step 1: Understand resizing rules
Hug contents means the frame changes size to fit the content inside exactly.Step 2: Compare with other rules
Fill stretches to fill the container, Fixed keeps size constant, Auto layout arranges items but does not define resizing rule itself.Final Answer:
Hug contents -> Option DQuick Check:
Hug contents = fits content exactly [OK]
- Confusing Fill with Hug
- Thinking Fixed resizes with content
- Mixing Auto layout with resizing rules
Solution
Step 1: Identify the fill resizing rule
Fill container means the frame stretches to fill the available space of its parent container.Step 2: Confirm correct option
Only Set resizing to Fill container correctly names this resizing rule as Fill container.Final Answer:
Set resizing to Fill container -> Option AQuick Check:
Fill container = stretches to parent [OK]
- Choosing Fixed size instead of Fill
- Confusing Hug with Fill
- Using Auto layout as resizing rule
Solution
Step 1: Understand Fill resizing behavior
Fill resizing makes the child frame stretch to fill the parent's width.Step 2: Calculate new width
When parent resizes to 600px, child frame with Fill will also resize to 600px width.Final Answer:
600px -> Option BQuick Check:
Fill resizing stretches child to parent's width [OK]
- Assuming fixed width stays constant
- Choosing original 200px width
- Confusing Fill with Hug
Solution
Step 1: Analyze resizing behavior
If child resizes with parent, it is likely set to Fill, not Fixed.Step 2: Check settings
Verify child's resizing rule; if set to Fill, it will stretch with parent.Final Answer:
The child frame's resizing is actually set to Fill, not Fixed -> Option CQuick Check:
Fixed resizing means no size change [OK]
- Blaming Auto layout instead of resizing rule
- Assuming locked frames resize
- Confusing Hug with Fixed
Solution
Step 1: Determine width resizing
To fit text exactly, width should be Hug contents.Step 2: Determine height resizing
To stretch vertically to fill panel, height should be Fill container.Final Answer:
Width: Hug contents, Height: Fill container -> Option AQuick Check:
Hug width fits text, Fill height stretches vertically [OK]
- Using Fixed size for width or height
- Swapping Hug and Fill rules
- Setting both dimensions to Fill
Ready to prove it?
Pass the test and this pattern moves unknown
