andreamazz / AMTagListView

UIScrollView subclass that allows to add a list of highly customizable tags.
MIT License
758 stars 110 forks source link

setting accessoryImage on an AMTagView and then setting the tag with addTagView truncates the text label on the tag #56

Open nsolter opened 8 years ago

nsolter commented 8 years ago

If I create an AMTagView, set the accessoryImage, set the text with setupWithText, and then add the tag to the tag list view, the frame of the tag gets shortened so that the text label is truncated.

The problem is in addTagView, where it recalculates the frame size for the tag. This recalculation doesn't take into account a possible accessory image.