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

UILabel in Row layout - text shrinking problem #738

Closed
1 task
LeoSchleicher opened this issue Mar 22, 2018 · 1 comment
Closed
1 task

UILabel in Row layout - text shrinking problem #738

LeoSchleicher opened this issue Mar 22, 2018 · 1 comment

Comments

@LeoSchleicher
Copy link

Report

Issues and Steps to Reproduce

I have some UILabels with fixed texts in row layout, I do justifyContent = .center, overall width of all labels is smaller than width of container

Expected Behavior

I just want to put all labels in row

Actual Behavior

sometimes one or more labels got ellipsize text shrinking after applyLayout.
I've done some research and found, that intrinsicContentSize of shrinked label is (193.333333333333, 17.6666666666667), but after applyLayout it rounds UILabel width to 193.0 - that causes text shrinking.

Link to Code

Code example is hard to provide as it depends on Device, Font parameters, Text and so on.

@NickGerleman
Copy link
Contributor

Closing in favor of #749 which has had more discussion/context

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

2 participants