Use different behavior when desired size is set and when it is not.