ignore maxHeight if it is zero.