M13BadgeView
M13BadgeView copied to clipboard
SetText and setFont change the badge view frame origin
Hello,
When i set the text or the font of my badge view the origin of my view change magically. Do you have an idea why it can happen?
example: Original frame : (x:10 y:23.5; w:20 h:20) [self.itemNumberBadgeView setFont:[AppFont fontRalewaySemiBoldWithSize:12.]]; Frame after this line : (x:290 y:-10; w:20 h:20)
Current solution: I found a hack by keeping a copy of the original frame then after each setText and setFont i assign my badgeView frame to the saved frame.