Skip to content

LineBreakMode="WordWrap" sometimes cuts off the last word #27520

Closed

Description

@Kas-code

Description

Sometimes the last word in a label gets cutoff when using LineBreakMode="WordWrap".
It seems to be if the last word of the label happens at the end of the label and instead of breaking the last word onto a new line like it should, the last word is just not displayed.
This happens on android and iOS.

ItemDisplayModel.zip

Steps to Reproduce

  1. Use the page in the example provided in the zip file
  2. Note that I've coded it so that each label displays a random amount of characters from the alphabet with random spaces in between. I've coded it to make the first character of the label equal to the last character of the label so that we can check every label displays the ending properly.
  3. Click the button in the example and check that the last character of every label is equal to the first character, if it is not then this means some text was cut off
  4. I am usually able to repro the issue 1 in every 5 screens. Meaning, I have to click the button about 5 times and check every label produced until I see a repro of the issue.

See the example screenshots below with a red arrow pointing to where text has been cut off:

Image
Image
Image
Image

Link to public reproduction project repository

No response

Version with bug

8.0.10 SR3

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS, Android

Affected platform versions

No response

Did you find any workaround?

No workaround

Relevant log output

Activity

  1. added
    t/bug
    on Feb 2, 2025
  2. Kas-code commented on Feb 4, 2025

    @Kas-code
    ContributorAuthor

    Repro on Android. Note that the label should end with "tuv" but this has been cut off:

    Image

    Issue is reproducable on Android and iOS

  3. added
    s/verified
    s/triaged
    on Feb 6, 2025
  4. Zhanglirong-Winnie commented on Feb 6, 2025

    @Zhanglirong-Winnie

    This issue has been verified Visual Studio 17.13 Preview 3(9.0.30 & 8.0.100 & 8.0.10). Can repro this issue on Android and iOS platforms.

  5. added this to the Backlog milestone on Feb 6, 2025
  6. added
    partner/syncfusion
    on Feb 7, 2025
  7. removed
    partner/syncfusion
    on Feb 11, 2025
  8. Kas-code commented on Jun 12, 2025

    @Kas-code
    ContributorAuthor

    Any progress on this?
    It's been verified as reproducible in both Android and iOS.
    Text gets cut off quite frequently and we have many users complaining that they can't read the last word of labels in our production app.
    Surely other MAUI projects should be experiencing this too?

    @jfversluis ?

  9. jfversluis commented on Jun 12, 2025

    @jfversluis
    Member

    If other MAUI projects would experience this, there would be a lot more activity here or a lot of duplicates which does not seem to be the case. We continually monitor our issues to determine priority and unfortunately this hasn't made it to the top of the list yet.

    The fact that we have everything we need, including a reproduction (thank you for that) does not mean it will be worked on right away. But we do have everything to get started. It's on the backlog, which means its not scheduled for anytime soon at the moment. While this might change at any given moment, if this is something that is blocking you I would suggest coming up with a workaround or see if you can contribute a fix yourself.

  10. 24 remaining items

  11. added 12 commits that reference this issue on Aug 27, 2026
    1710486
    f588119
    45ce747
    051b35c
    cc1f9d9
    e1aff2f
    0f4b306
    ecce3fc
    a530abf
    809cb75
    59e40e9
    90b6f18
  12. locked and limited conversation to collaborators on Oct 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-controls-labelplatform/androidplatform/ioss/triageds/verifiedt/bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions