Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'adjustsFontSizeToFitWidth' doesn't seem to work #21

Open
gregplumbly opened this issue May 6, 2014 · 5 comments
Open

'adjustsFontSizeToFitWidth' doesn't seem to work #21

gregplumbly opened this issue May 6, 2014 · 5 comments

Comments

@gregplumbly
Copy link

Saw this was fixed previously but I seem to be having the same problem in 1.5.6 and 1.57

screen shot 2014-05-06 at 11 34 12

@nicklockwood
Copy link
Owner

I believe that the issue is that automatic scaling only works when numberOfLines = 1, which is the default when the FXLabel is created using a nib, but not when created programmatically.

I'll fix that, but in the meantime if you set numberOfLines = 1 yourself then it should work.

@gregplumbly
Copy link
Author

Thanks Nick,

its quite possible I am doing something wrong but seem to still have the problem with numberOfLines = 1
screen shot 2014-05-06 at 12 48 11

@nicklockwood
Copy link
Owner

Ah, sorry. The problem only applies when minimum deployment target is set to iOS 7 or higher, so I didn't notice it. I'll investigate now.

@nicklockwood
Copy link
Owner

OK, this is fixed in 1.5.8

@zvjerka24
Copy link

I have the same problem. Target is set to iOS 7 or higher and I'm adding label from code. Also, I'm using the latest FXLabel version 1.5.8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants