Skip to content

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

Open
@Kas-code

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions