Added min and max in SetHeight