Bug 36788 - [Forms] Truncation Issues with Relative Layouts
Summary: [Forms] Truncation Issues with Relative Layouts
Status: VERIFIED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 2.0.0
Hardware: PC Mac OS
: High major
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-12-09 18:33 UTC by Matthew Regul
Modified: 2016-04-06 15:14 UTC (History)
9 users (show)

Tags: ac
Is this bug a regression?: ---
Last known good build:


Attachments
iOS Screenshot (68.69 KB, image/png)
2015-12-09 18:35 UTC, Matthew Regul
Details
Android_Label_Issue.png (93.72 KB, image/png)
2015-12-09 18:35 UTC, Matthew Regul
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:
VERIFIED FIXED

Description Matthew Regul 2015-12-09 18:33:39 UTC
**Overview:**

Using Forms 2.0.0 there appear to be issues related to truncation of labels within relative layouts:
- On iOS, ellipses are missing from the end of a label's text when they are put within a relative layout with "IsClippedToBounds" set to true and LineBreakMode is set to "TailTruncation" (see the attached "iOS_Label_Issue.png").

- On Android, labels are spilling over a relative layout if the labels RelativeLayout.XConstraint is set even if the "IsClippedToBounds" is set to true (see the attached "Android_Label_Issue.png").

- There seems to be some further inconsistency between the two platforms. If the RelativeLayout.XConstraint is not set, the labels are truncated on Android but the labels are not truncated on iOS. Which is the correct behavior?

Sample Code - https://gist.github.com/mattregul/c5f1d619ece4e3900170#file-loginpage-xaml
iOS Screenshot - https://gist.github.com/mattregul/c5f1d619ece4e3900170#gistcomment-1645329
Android Screenshot - https://gist.github.com/mattregul/c5f1d619ece4e3900170#gistcomment-1645331

**Build Date & Platform:**

Version Info - https://gist.github.com/mattregul/c5f1d619ece4e3900170#file-vs2015-version-info-cs
- Xamarin Forms (2.0.0.6490)
Comment 1 Matthew Regul 2015-12-09 18:35:19 UTC
Created attachment 14208 [details]
iOS Screenshot
Comment 2 Matthew Regul 2015-12-09 18:35:41 UTC
Created attachment 14209 [details]
Android_Label_Issue.png
Comment 4 Jason Smith [MSFT] 2016-01-21 20:39:49 UTC
Thank you for the report
Comment 5 Jason Smith [MSFT] 2016-03-14 11:31:03 UTC
SHould be fixed in 2.2.0-pre1
Comment 6 Parmendra Kumar 2016-04-06 15:14:30 UTC
I have checked this issue with xamarin.forms 2.2.0-pre1 and I am getting same on both android and iOS.

Screencast: http://www.screencast.com/t/VuY4wzqC3wy4

Hence closing this issue.