Set position inside a GridContainer

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Not_a_Robot
:warning: Old Version Published before Godot 3 was released.

Hello everyone!

I have a GridContainer where I add buttons to be placed as a grid. It works fine until there.

Then, I try to place some TextureFrames on top of each button like:
(every dot is a TextureFrame)
enter image description here

But instead of that, I get:

enter image description here

I wonder if is there any way to get the real position of the buttons after being placed by the GridContainer. I tried get_pos and get_global_pos but the result is the same.

One of the things I tried is create the buttons first and then iterate again to place the TextureFrames but nothing. The position is the same for everybutton.

Any help is appreciated, thank you in advance!

Edit: I discovered that the issue is I try to place TextureFrames before the GridContainer updates the position of the buttons.