so i have this task manager project
every bar has a special number
and this numbers are stored in an array
and i have this system that gives every bar its position
for x in in_do.size():
if $bars.get_child(x).get_child(0).node_statu==0 and Input.is_action_pressed("mous_left_click")==false:
$bars.get_child(x).rect_position.x=$Position2D.global_position.x
$bars.get_child(x).rect_position.y=$Position2D.global_position.y + in_do[in_do.find(get_child(x).get_child(0))]*80
print($bars.get_child(x).get_child(0).node_statu
but when i run the project then add some bars then removing some to the white bar they dont re organazed
this is the project (pleas look at it): https://drive.google.com/open?id=1Fkq43rU2pCKGvUfjtSwzXXz40lkbesTi