setMaxWidthResource

sets the maximum size of the width using a dimension resource. this functionality works only with the BalloonSizeSpec.WRAP.