The problem of the influence of element height on location

At first, it looked like this. The relative positioning of the child element relative to the parent element is now normal, that is, the child element is directly above the parent element. But there is a problem that the height of the child element is not fixed. The height of the child element is dynamically created based on the data returned in the background, so the height of the child element will become larger.
when it gets bigger, the child element will overwrite the parent element without positioning it directly above the parent element. How to solve this?

Mar.23,2021

height of bottom: parent element

Menu