a problem with for and rect_position

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

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.y=$Position2D.global_position.y + in_do[in_do.find(get_child(x).get_child(0))]*80

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): to do , and progress bar.zip - Google Drive

i updated the project

abdolilah | 2020-03-06 15:20