Bug 54050 - Label TailTruncation problem - fragment of last letter is not visible
Summary: Label TailTruncation problem - fragment of last letter is not visible
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: 2.4.0
Hardware: PC Windows
: High blocker
Target Milestone: ---
Assignee: Samantha Houts [MSFT]
Depends on:
Reported: 2017-03-27 13:55 UTC by Jakub
Modified: 2017-12-20 00:00 UTC (History)
9 users (show)

Tags: label, tailtruncation, 24, ac
Is this bug a regression?: ---
Last known good build:

Arrow shows the problem with last letter visibility (16.16 KB, image/jpeg)
2017-03-27 13:55 UTC, Jakub

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Jakub 2017-03-27 13:55:49 UTC
Created attachment 20891 [details]
Arrow shows the problem with last letter visibility

Problem occurs on Xiaomi Redmi 3s (Android 6.0)

Possible cause of problem is calcuation of Device Independent Units to pixels. During the calculation we might lose decimal values. Label have proper width.
Comment 1 Paul DiPietro [MSFT] 2017-03-27 14:17:56 UTC
Is this only noticeable on your Redmi phone? Any other emulators/devices/Android versions where this occurs? Do you have a reproduction you could possibly upload?
Comment 2 Jakub 2017-03-27 14:20:05 UTC
For now I know only about Xiaomi Redmi 3s.

I will try to send reproduction as soon as possible.
Comment 3 Jakub 2017-03-31 10:43:47 UTC
I figured out that problem occurs not only on Xiaomi Redmi 3S.

Reproduction of problem on device with Density 3 (Honor 5X)

public App ()
   MainPage = new ContentPage
      BackgroundColor = Color.Pink,
      Content = new StackLayout
         VerticalOptions = LayoutOptions.Center,
         HorizontalOptions = LayoutOptions.Center,
         Children =
	    new Label
	       HorizontalTextAlignment = TextAlignment.Start,
               BackgroundColor = Color.White,
               Text = "0:00 0:0:00:00 0 0000 00 000",
               TextColor = Color.Black,
               FontSize = 12,
               LineBreakMode = LineBreakMode.TailTruncation
Comment 5 Paul DiPietro [MSFT] 2017-09-06 18:43:42 UTC
I'm going to set this to confirmed for now since it is in fact an issue but requires further investigation.
Comment 6 David Ortinau [MSFT] 2017-12-20 00:00:38 UTC
Migrated to https://github.com/xamarin/Xamarin.Forms/issues/1425

Please subscribe to that issue for future updates.