Bug 34943 - Label is clipped when inside a StackLayout with another Label using TrailTruncation
Summary: Label is clipped when inside a StackLayout with another Label using TrailTrun...
Status: RESOLVED ANSWERED
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 2.0.0
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-10-16 09:14 UTC by John Miller [MSFT]
Modified: 2018-02-21 01:44 UTC (History)
8 users (show)

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


Attachments
Sample Project (37.97 KB, application/zip)
2015-10-16 09:14 UTC, John Miller [MSFT]
Details
Screenshot. Blue arrows point to clipping. (119.79 KB, image/png)
2015-10-16 09:14 UTC, John Miller [MSFT]
Details
unified sample (36.20 KB, application/zip)
2017-08-30 20:35 UTC, David Ortinau [MSFT]
Details


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:
Status:
RESOLVED ANSWERED

Description John Miller [MSFT] 2015-10-16 09:14:26 UTC
Created attachment 13372 [details]
Sample Project

**Overview:**

   With two labels inside a StackLayout (horizontal), 1 of them will be clipped if the other is too long and gets the ellipses from a TrailTruncation WrapMode setting. See attached image. 

**Steps to Reproduce:**

   1. Run the attached sample on an iOS simulator.

**Actual Results:**

   See attached image. 
   The yellow label is clipped in the not working groups. 

**Expected Results:**

   The yellow label should not be clipped and should show 00:00.

**Build Date & Platform:**

   Android/iOS
   XF 1.5.1-pre2

**Additional Information:**

   Possible workaround: Set a MinimumWidthRequest on the yellow label. See the last StackLayout in the sample, which works.
Comment 1 John Miller [MSFT] 2015-10-16 09:14:56 UTC
Created attachment 13373 [details]
Screenshot. Blue arrows point to clipping.
Comment 2 Paul Brenner 2017-02-09 18:27:46 UTC
Any workaround or update on this?
Comment 3 David Ortinau [MSFT] 2017-08-30 20:35:31 UTC
Created attachment 24487 [details]
unified sample

Confirmed this still occurs on 2.4.0.269-pre2. Revised sample project.
Comment 4 Paul Brenner 2018-02-20 21:35:50 UTC
See https://github.com/xamarin/Xamarin.Forms/issues/1934
Comment 5 Samantha Houts [MSFT] 2018-02-21 01:44:31 UTC
Please follow https://github.com/xamarin/Xamarin.Forms/issues/1934 for updates. Thanks!