Setter for measureWithChild