maui icon indicating copy to clipboard operation
maui copied to clipboard

[Android] Label.CharacterWrap wraps text too soon

Open Pastajello opened this issue 1 year ago • 3 comments

Description

Hello,

There is an issue with Character wrapping in Android, its somehow splitting the text into sameish length lines: On iOS its working fine:

Steps to Reproduce

  1. Create MAUI project
  2. Create Grid with Columns "*,Auto"
  3. Add some layout to Auto column
  4. Add label with long text to * column
  5. Set LineBreakMode to "CharacterWrap"

Link to public reproduction project repository

https://github.com/Pastajello/LabelCharacterWrapIssue

Version with bug

8.0.40 SR5

Is this a regression from previous behavior?

Yes, this used to work in Xamarin.Forms

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

No response

Did you find any workaround?

No

Relevant log output

No response

Pastajello avatar May 23 '24 08:05 Pastajello

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!

Open similar issues:

Closed similar issues:

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

github-actions[bot] avatar May 23 '24 08:05 github-actions[bot]

From my tests it has been like that from at least 8.0.7. Couldn't compile on 8.0.6 (something about SplashTheme not existing)

Pastajello avatar May 23 '24 08:05 Pastajello

Verified this issue with Visual Studio 17.11.0 Preview 1.0 ( 8.0.40 & 8.0.21& 8.0.3 ) Can repro it. Xamarin form cannot repro it. image

ninachen03 avatar May 23 '24 09:05 ninachen03

If the Label's text is Chinese, there is another issue.

Expected correct behavior, correct line breaks, and the first character of each line is not a punctuation mark:

你好,世
界。

But, Actual behavior,No line breaks and missing characters:

你好,世

CodingOctocat avatar Aug 08 '24 13:08 CodingOctocat