Implemented intial auto height for the container.