M13BadgeView icon indicating copy to clipboard operation
M13BadgeView copied to clipboard

SetText and setFont change the badge view frame origin

Open omerozk opened this issue 10 years ago • 0 comments

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.

omerozk avatar Nov 19 '15 15:11 omerozk