move_child function is not rendering control in new position under hBoxContainer

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

hey
im using hBoxContainer for a carousel mech.
when im calling custome “swipe” function that i wrote, im using move_child to move the first control to be the last.
according to the scene tree the control’s position in the array has changed correctly,yet its position remains the same.
i tried to use yield nad hide/show for a sec and it worked out,but i wonder if it is a problem or is there another elegant way?
by the way, when i add to a pre-built list, another control,it sticks to the begging of the hbox as well, and not been placed as last(in terms of position, not tree order,which is fine).