0
0
Figmabi_tool~10 mins

Absolute positioning within Auto Layout in Figma - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to set a frame to absolute position inside an auto layout frame.

Figma
frame.positionType = '[1]'
Drag options to blanks, or click blank then click option'
Astatic
Bfixed
Crelative
Dabsolute
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'relative' instead of 'absolute' causes the frame to follow auto layout positioning.
2fill in blank
medium

Complete the code to set the x coordinate of an absolutely positioned frame.

Figma
frame.x = [1]
Drag options to blanks, or click blank then click option'
Aframe.parent.width
B50
Cframe.y
Dframe.height
Attempts:
3 left
💡 Hint
Common Mistakes
Using frame.parent.width sets x to the parent's width, which may push the frame outside view.
3fill in blank
hard

Fix the error in setting absolute position by completing the property name correctly.

Figma
frame.[1] = 'absolute'
Drag options to blanks, or click blank then click option'
ApositionType
Bposition
CposType
DabsolutePosition
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'position' instead of 'positionType' causes the code to fail.
4fill in blank
hard

Fill both blanks to set absolute position and move the frame 30 pixels from the top.

Figma
frame.[1] = 'absolute'
frame.[2] = 30
Drag options to blanks, or click blank then click option'
ApositionType
Bx
Cy
Dtop
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'top' instead of 'y' for vertical position causes errors.
5fill in blank
hard

Fill all three blanks to set absolute position and place the frame at (40, 20).

Figma
frame.[1] = 'absolute'
frame.[2] = 40
frame.[3] = 20
Drag options to blanks, or click blank then click option'
ApositionType
Bx
Cy
Dwidth
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up x and y coordinates or using width instead of position properties.