Script to make a container adapt its height to an specific base height.