0
0
Figmabi_tool~20 mins

Constraints for responsive behavior in Figma - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Responsive Design Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
Understanding Constraints in Responsive Design

In Figma, constraints help control how objects behave when the frame is resized. Which constraint setting will keep an object fixed to the right edge of its parent frame when the frame width changes?

ASet the object’s horizontal constraint to 'Scale'.
BSet the object’s horizontal constraint to 'Left'.
CSet the object’s horizontal constraint to 'Center'.
DSet the object’s horizontal constraint to 'Right'.
Attempts:
2 left
💡 Hint

Think about which side the object should stick to when the frame grows or shrinks.

visualization
intermediate
1:30remaining
Predicting Object Position After Resizing

You have a rectangle inside a frame. The rectangle’s constraints are set to 'Left' and 'Top'. If the frame width and height increase, where will the rectangle be positioned?

AThe rectangle stays fixed to the top-left corner.
BThe rectangle moves to the bottom-right corner.
CThe rectangle stretches to fill the frame.
DThe rectangle moves to the center of the frame.
Attempts:
2 left
💡 Hint

Constraints 'Left' and 'Top' keep the object fixed relative to those edges.

🎯 Scenario
advanced
2:00remaining
Designing a Responsive Button

You want a button inside a frame to always stay centered horizontally and maintain a fixed distance from the bottom edge when the frame resizes. Which constraints should you set?

AHorizontal: Center, Vertical: Top
BHorizontal: Left, Vertical: Bottom
CHorizontal: Center, Vertical: Bottom
DHorizontal: Scale, Vertical: Bottom
Attempts:
2 left
💡 Hint

Think about how to keep the button horizontally centered and vertically fixed to the bottom.

🔧 Formula Fix
advanced
2:00remaining
Fixing Unexpected Object Stretching

A text box inside a frame stretches horizontally when the frame width changes, but you want it to keep its original width and stay fixed to the left edge. Which constraint setting is causing the stretch?

AHorizontal constraint set to 'Scale'.
BHorizontal constraint set to 'Left'.
CHorizontal constraint set to 'Right'.
DHorizontal constraint set to 'Center'.
Attempts:
2 left
💡 Hint

Which constraint makes the object resize with the frame?

dax_lod_result
expert
2:30remaining
Calculating Responsive Layout Impact

In a BI dashboard, you have a measure that calculates the average sales per region. You want to create a measure that calculates the average sales only for regions visible in the current responsive layout (filtered by slicer). Which DAX expression correctly respects the current filter context for regions?

Assume the sales table is 'Sales' and the region column is 'Region'.

AAverageSalesVisible = AVERAGE(Sales[SalesAmount])
BAverageSalesVisible = AVERAGEX(VALUES(Sales[Region]), CALCULATE(AVERAGE(Sales[SalesAmount])))
CAverageSalesVisible = CALCULATE(AVERAGE(Sales[SalesAmount]), ALL(Sales[Region]))
DAverageSalesVisible = CALCULATE(AVERAGE(Sales[SalesAmount]), REMOVEFILTERS(Sales[Region]))
Attempts:
2 left
💡 Hint

Think about how to calculate average sales only for the regions currently filtered or visible.