layout: Address review comments for `min-height` and `max-height`
computation