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

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

Open
acaliaro opened this issue Jun 20, 2024 · 2 comments
Open
Labels
area-controls-label Label, Span platform/iOS 🍎 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Milestone

Comments

@acaliaro
Copy link

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

@acaliaro acaliaro added the t/bug Something isn't working label Jun 20, 2024
Copy link
Contributor

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@jfversluis jfversluis added platform/iOS 🍎 area-controls-label Label, Span i/regression This issue described a confirmed regression on a currently supported version labels Jun 20, 2024
@ninachen03 ninachen03 added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed and removed i/regression This issue described a confirmed regression on a currently supported version labels Jun 21, 2024
@ninachen03
Copy link
Collaborator

ninachen03 commented Jun 21, 2024

I can repro this issue on Visual Studio 17.11.0 Preview 2.1 ( 8.0.70-ci.net8.24319.2 & 8.0.60 & 8.0.40 & 8.0.14).
image

@samhouts samhouts removed s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Jul 3, 2024
@samhouts samhouts added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Jul 10, 2024
@PureWeen PureWeen added this to the Backlog milestone Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-label Label, Span platform/iOS 🍎 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants