add autoHeightCondition