MRoundedButton icon indicating copy to clipboard operation
MRoundedButton copied to clipboard

Center textlabel's Y-coordinate?

Open jtoronto opened this issue 10 years ago • 1 comments

I noticed that if I have more than 2 characters in a MRoundedButton the text is shifted downwards.

screen shot 2014-12-16 at 8 13 08 pm screen shot 2014-12-16 at 8 13 13 pm

It's worse with Japanese/Chinese characters since they're a little bit wider.

screen shot 2014-12-16 at 8 13 59 pm screen shot 2014-12-16 at 8 14 04 pm

jtoronto avatar Dec 17 '14 01:12 jtoronto

Hi @jtoronto , this may cased by I initialed the textLabel.adjustsFontSizeToFitWidth to YES.

You can set a smaller font first, I will find a better way to fix this.

mrcrow avatar Jan 09 '15 01:01 mrcrow