Problem with getting list view hight

Hi, I think that after setting list view elements and then trying to get it height so it return 0. but if it is not immediately after so it give the real height. why it is not give the height immediately after setting the elements? and what can I do to solve it?


Maybe you can use a Clock component with a very little interval to give it time to get its Height: