Skip to content

Labels with Padding are truncated on IOS #28180

@ollex

Description

@ollex

Description

When a label has a padding assigned, it does not display the complete text on IOS. Without padding, it displays the text properly to its full extend.

Steps to Reproduce

  1. Create a new .NET Maui solution.
  2. Change the default page to contain a label with padding and a text that is long enough to need to be wrapped into more than a single line.
  3. Remove / add padding to see the issue.

Link to public reproduction project repository

https://github.com/ollex/maui-label-issue

Version with bug

9.0.14 SR1.4

Is this a regression from previous behavior?

Yes, this used to work in Xamarin.Forms

Last version that worked well

No response

Affected platforms

iOS

Affected platform versions

IOS 15 and up

Did you find any workaround?

A workaround is to wrap the label into for example a ContentView with Padding and leave the label's padding at zero.

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-controls-labelLabel, Spanp/2Work that is important, but is currently not scheduled for releasepartner/syncfusionIssues / PR's with Syncfusion collaborationplatform/iOS 🍎t/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions