Preallocating variables for child measured width and height.