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

fix(iOS): avoid cutting-off text on bottom bar buttons on iPad. #7863

Merged
merged 1 commit into from
Mar 20, 2024

Conversation

asafkorem
Copy link
Collaborator

For some reason, this change resolves the issue in the attached snapshots.

When centered=YES, setting the text alignment to NSTextAlignmentCenter (see here) may incidentally cause the text layout engine to more effectively manage the available space. Doesn't seem like it affects anything in iPhones.

Overall, it seems like a bug in UIKit..

Before:
Screenshot 2024-03-20 at 17 16 15

After:
Screenshot 2024-03-20 at 18 10 10

For some reason, this change resolves the issue in the attached snapshots.

When `centered=YES`, setting the text alignment to `NSTextAlignmentCenter`
may incidentally cause the text layout engine to more effectively manage the
available space. Doesn't seem like it affects anything in iPhones.

Overall, it seems like a bug in UIKit..
@asafkorem
Copy link
Collaborator Author

Thanks @phuongwd for finding this patch #7855 (comment)

@asafkorem asafkorem merged commit 9d627a9 into master Mar 20, 2024
5 of 6 checks passed
@asafkorem asafkorem deleted the fix/ipad-bottom-button branch March 20, 2024 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bottom tabs text is cut off on iPad Text in bottom bar is cut off in ipad
2 participants