return child position to the Grid Container

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

I have a grid container and I have moved one of its children out by dragging it with the mouse with

if input.is_actio_pressed(left_click"):
     rect_position = get_global_mouse_position()

the node is now out of the grid container alignment but it is still its child, how do I make it re-align in the position within the gridcontainer with the other child nodes

:bust_in_silhouette: Reply From: MintSoda
container.visible = false;
container.visible = true;

If I remember correctly, it works on any container, but I could be wrong.