-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Bug] Label with padding cuts text in specific cases on iOS #10077
Comments
Your screenshot also contains problematic labels: all "Lorem ipsum" labels except the middle one are missing words "adipiscing elit" at the end. |
@andreinitescu FYI |
This has been driving me mad. For me it only happened on iOS with dynamically set text (Binding or assigned in code). Removing the padding from the label was a good workaround. Putting the padding on the parent element instead was no problem. |
Today, 25.02.2021 the issue still persist. Will this eventually get resolved? No padding is not an option in many cases due to readability. (VS 2019 16.8.5 all up to date). |
I spent about 3 hours today with this issue until I found out myself about the padding thing. My workaround was to wrap the label in |
This could be the same problem: #12710 |
Still an issue as of 20/08/2021 with Xamarin Forms on latest version and VS 2019 On latest version, any update on when this will be fixed? |
Is there a way to bring more votes or attention to this issue? |
Same issues! |
Another workaround that works in most cases is to use the Margin property instead of the Padding. |
Description
In certain cases Label on iOS may cut last line of text. This happens if padding is applied to the Label and the text would otherwise fit into the view if the Label was the same width but without the padding.
Issue occurs on iOS. Android is fine.
Steps to Reproduce
Run the attached project: FormsBug.zip
See the screenshot below (iPhone 11 iOS 13.3, two screenshots merged).
Sections on the screenshot:
Issue also appears on iPhone 8 iOS 13.3 and iPhone 7 iOS 10.3, but not on the same labels.
Expected Behavior
Whole text should be shown.
Actual Behavior
In certain cases part of the text is not shown.
Basic Information
Workaround
Do not use padding.
The text was updated successfully, but these errors were encountered: