This repository was archived by the owner on May 1, 2024. It is now read-only.
This repository was archived by the owner on May 1, 2024. It is now read-only.
[Bug] Label with padding cuts text in specific cases on iOS #10077
Open
Description
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:
- First three sections show example text, with orange Labels not showing the whole text.
- Green section shows Labels with progressively larger padding. First three Labels have right margin set to 54, and last three to 53 (just enough to not cause line break). It shows that if first Label (which is without horizontal padding) wraps text (and therefore increases view height), Labels with horizontal padding will also increase their height. But if Label without horizontal padding does not wrap the text (first of the last three Labels), Labels with padding won't increase their height to account for the new line.
- Grey section: text is not shown even if Label has pre-set larger height.
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
- Version with issue: 4.5.0.396
- Last known good version: /
- IDE: Visual Studio 2019 16.5.0
- Platform Target Frameworks:
- iOS: 13.14.1.39
- Android: 10.2.0.100
- Affected Devices: iPhone 11 iOS 13.3, iPhone 8 iOS 13.3, iPhone 7 iOS 10.3
Workaround
Do not use padding.