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

sizeThatFits does not consider attributedTruncationToken #491

Closed
hpique opened this issue Jan 28, 2015 · 0 comments
Closed

sizeThatFits does not consider attributedTruncationToken #491

hpique opened this issue Jan 28, 2015 · 0 comments

Comments

@hpique
Copy link
Contributor

hpique commented Jan 28, 2015

sizeThatFits does not consider attributedTruncationToken. Consider the following string and … More as the token:

test
test
test

Using sizeToFit to set the size of the label for 2 lines would result in something like:

test
… Mo

This is also a problem in single line strings when the width of the text is smaller than the width of the truncation token. However, that is a less likely scenario.

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

1 participant