Use the clientBoundingRect of the container to set height and width.