+1 vote

I am trying to place some buttons in a GridContainer, and I am facing a problem with positioning the buttons at the center of the container. I first tried centering them horizontally using the size flags Expand and Shrink Center, but this creates an empty space between the buttons, which is undesirable. To reduce that empty space, I could use the Fill flag, but that would change the aspect ratio of the buttons, which is also undesirable. Is there a way to center the buttons, while keeping their original size and spacing?

in Engine by (36 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.