Measure a component with the given SizeSpec constrain.
ComponentContext.
Width SizeSpec constrain.
Height SizeSpec constrain.
Size object that will be set with the measured dimensions.