How to center children in GridContainer?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By SASUPERNOVA

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?