Skip to content

[BUG] ios LineBreakMode and MaxLines on Label controls does not work well #23159

@acaliaro

Description

@acaliaro

Description

There are some issue ("solved"...) about this problem but I have again the same problem.

IOS
ios

ANDROID
android

on iOS MaxLines = 2 is not respected

Steps to Reproduce

        <Label
            Grid.Row="1"
            Grid.Column="0"
            Grid.ColumnSpan="2"
            FontSize="Small"
            LineBreakMode="TailTruncation"
            MaxLines="{OnPlatform Default='2'}"
            Text="{Binding Title}"
            TextColor="{StaticResource DazeBlack}" />

A label with MaxLines and LineBreakMode give a wrong result on iOS

Link to public reproduction project repository

https://github.com/acaliaro/MauiMaxLinesProblem

Version with bug

8.0.60 SR6

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

iOS 17.3 iphone 12

Did you find any workaround?

no

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-controls-labelLabel, Spanplatform/ioss/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions