Skip to main content

counterAxisAlignContent

Applicable only on auto-layout frames with layoutWrap set to "WRAP". Determines how the wrapped tracks are spaced out inside of the auto-layout frame.

Signature​

counterAxisAlignContent: 'AUTO' | 'SPACE_BETWEEN'

Remarks​

Changing this property on a non-wrapping auto-layout frame will throw an error.

  • "AUTO": If all children of this auto-layout frame have layoutAlign set to "STRETCH", the tracks will stretch to fill the auto-layout frame. This is like flexbox align-content: stretch. Otherwise, each track will be sized to the largest child along the counter axis, and will align based on the value of counterAxisAlignItems. This is like flexbox align-content: start | center | end. counterAxisSpacing is respected when counterAxisAlignContent is set to "AUTO".
  • "SPACE_BETWEEN": Tracks are all sized based on the largest child along the counter axis in the track. The free space within the auto-layout frame is divided up evenly between each track. If the total size of all tracks along the counter axis exceeds the auto-layout frame’s counter-axis size, the spacing will be 0.