'Dropdown menu won't move objects down

I'm instantiating objects/prefabs into a vertical layout group in Unity. each of these objects have a dropdown menus, but my issues is that when I'm expanding the dropdown menu, it does not push the other elements in the layout group down.

What I want these prefabs to do, is that they should be able move the other objects down in order for things to not overlap.

Edit:

How it looks when pressed play in Unity

The script that instantiates the prefab that has the dropdown



Solution 1:[1]

Generally, you could add a component called ContentSizeFitter to the parent game object, and set vertical fit to min size. All the child element should add a LayoutElement with a specific min size

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Ahn Ng