Fixed container height issue when going back from a longer child

When going back from a longer child, it's necessary to take in consideration the parent height, otherwise, the parent list will have the same height as the child, and it will contain an empty space at the bottom.