Vertical Layout Group has a different behaviour between Editor and Android device

I’m trying to create dynamically a list of buttons in a panel with a Vertical Layout Group component.

All seems to work well in the Editor, but when I’m going to test the game on my smartphone, I have a different behaviour on the list rendering. These are two screenshots: on the left the Editor game (this is what I want), on the right the Android game:

These are the components in the the Panel:

What can I do to solve this different behaviour?

Thanks in advance

Finally, I have found the solution. In the script which generates the list dynamically, at the end I didn’t call


This method force the layout to recalculate its content size.