Skip to main content
Question

Negative autolayout gap bug


Matt_Meeks

I needed to put a negative number in for the vertical gap in a wrap autolayout, but Figma doesn’t let you use negative numbers there. However, it does let you use a negative number for the horizontal gap. What’s weird is that I can use a negative number in a variable and use that variable for the vertical gap. So there’s a workaround, but it seems like I shouldn’t have to create a variable just for that.

This topic has been closed for replies.

3 replies

Gayani_S
Figmate
  • Community Support
  • 2071 replies
  • May 16, 2024

Hey there, thank you for reaching out! This is a interesting question. I’ve reached out internally and asked the team for more information on this. Will give you an update soon.

Appreciate your patience in the meantime!


Gayani_S
Figmate
  • Community Support
  • 2071 replies
  • May 17, 2024

Hey @Matt_Meeks, so I only got the update that it’s not possible because there is no good way to achieve negative vertical gap with CSS flexbox.

Please let me know if this clears your questions or if you have any further questions!


Matt_Meeks
  • Author
  • Active Member
  • 20 replies
  • May 17, 2024

That’s crazy because it works beautifully using a negative value as a variable, and you can use a negative in the horizontal gap, which also works beautifully.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings