How to make GridContainer element occupy nth space?

Godot Version

4

Question

image
What I want to happen is for the equal element to occupy two space in the Grid container.

I dont think this is possible with the grid container. You can Try the “FlowContainer”. It works similary but is more flexible.

EDIT: if you want to have the equal sign on the nth-space you can fill in “empty”-control nodes between “0” and “=”

1 Like

I don’t understand. Do you mean GridContainer? If you can expand, how can I apply the solution you proposed with FlowContainer? Thank you so much :blush:

If you want to use a gridcontainer and you want to have the equal-sign on the right ( below the “+” symbol), you can add control nodes as the child of the container - to fill up the empty space. You just have to set the size of the flow container to the same size as the GridContainer and then the elements should all find their place on their own. And you can change the size of the “equal”-button if that is what you intended to do

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.