You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
LineBreakMode="WordWrap" sometimes cuts off the last word #27520
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.
Use the page in the example provided in the zip file
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.
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
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:
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
Reacted by Felix-Dev, Ringo Tyson and Pavel Holeček
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?
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.
Activity
Kas-code commentedon Feb 4, 2025
Repro on Android. Note that the label should end with "tuv" but this has been cut off:
Issue is reproducable on Android and iOS
Zhanglirong-Winnie commentedon Feb 6, 2025
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.
Kas-code commentedon Jun 12, 2025
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 ?
jfversluis commentedon Jun 12, 2025
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.
24 remaining items
Fix FlexLayout measuring items wider than their arranged size (#36416)
Fix FlexLayout measuring items wider than their arranged size (#36416)
Fix FlexLayout measuring items wider than their arranged size (#36416)
Fix FlexLayout measuring items wider than their arranged size (#36416)
Fix FlexLayout measuring items wider than their arranged size (#36416)
Fix FlexLayout measuring items wider than their arranged size (#36416)
Fix FlexLayout measuring items wider than their arranged size (#36416)
Fix FlexLayout measuring items wider than their arranged size (#36416)
Fix FlexLayout measuring items wider than their arranged size (#36416)
Fix FlexLayout measuring items wider than their arranged size (#36416)
Fix FlexLayout measuring items wider than their arranged size (#36416)
Fix FlexLayout measuring items wider than their arranged size (#36416)
MAUI parity of shipped controls: Phase P1–P3, custom line breaking (#22)