Skip to main content
Question

counterAxisSpacing and "auto" value

  • July 23, 2024
  • 2 replies
  • 42 views

Vincent_Huss

Hi !

in the counterAxisSpacing property, documented here :

figma.com

I see no reference to auto, which is something that can be set in Figma and has an effect similar to justify-content: space-between in css/flex

Am i missing something, or is it not implemented in the API?

Thanks

This topic has been closed for replies.

2 replies

James_Yang
Figmate
  • Figmate
  • 82 replies
  • July 23, 2024

You should look at the counterAxisAlignContent property if you want to understand the spacing between tracks, which should have 'SPACE_BETWEEN' instead of 'AUTO' in this case.

If you’re more interested in the spacing along the primary axis, then you can look at primaryAxisAlignItems.

Check out this page (layoutMode | Plugin API) if you want a list of all the autolayout-related properties.


Vincent_Huss
  • Author
  • Active Member
  • 29 replies
  • October 3, 2024

Hi ! i’m sorry i forgot to reply to this !
thanks for your insight, it totally clarified the misconception i was having about that.

Cheers