Bug 31806 - [iOS] Custom Font Style applied to List Item can cause WordWrap to fail depending on string length
Summary: [iOS] Custom Font Style applied to List Item can cause WordWrap to fail depen...
Status: CONFIRMED
Alias: None
Product: Forms
Classification: Xamarin
Component: iOS ()
Version: 1.4.3
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-07-09 18:05 UTC by Kent Green [MSFT]
Modified: 2017-08-30 12:27 UTC (History)
3 users (show)

Tags: ac, ios, wordwrap, label, unevenrows, listview, style
Is this bug a regression?: ---
Last known good build:


Attachments
XS logs from my repo of the issue (36.42 KB, application/zip)
2015-07-09 18:05 UTC, Kent Green [MSFT]
Details
screenshot comparison (333.84 KB, image/png)
2017-08-30 12:27 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 for Bug 31806 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
CONFIRMED

Description Kent Green [MSFT] 2015-07-09 18:05:57 UTC
Created attachment 11962 [details]
XS logs from my repo of the issue

---Overview---
From this desk case:
https://kb.xamarin.com/agent/case/182913

Customer reports that part of the string is cut off and fails to WordWrap in their list items. After several tests I noted that for a given string, adding or removing a single character would preserve the string. In the case of removing a single character, the word would reappear on the same line. Conversely, adding a single character to part of a string that was cut off, would cause it to wrap correctly to the next line.

The precise character length where this occurs seems to vary depending on the precise string; however in my tests consistently the + or - 1 character approach causes the missing portion of the string to "reappear."


---Build Information---
Xamarin.Forms 1.4.3.6374

=== Xamarin Studio ===

Version 5.9.4 (build 5)
Installation UUID: 8ef63a7c-1b18-40de-a334-7f78777fcb55
Runtime:
	Mono 4.0.2 ((detached/c99aa0c)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 400020005

=== Apple Developer Tools ===

Xcode 6.4 (7720)
Build 6E35b

=== Xamarin.iOS ===

Version: 8.10.3.2 (Business Edition)
Hash: 8b265d6
Branch: master
Build date: 2015-06-30 15:19:13-0400

=== Xamarin.Android ===

Version: 5.1.4.16 (Business Edition)
Android SDK: /Users/kentgreen/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		2.3    (API level 10)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
Java SDK: /usr
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)

=== Xamarin Android Player ===

Version: Unknown version
Location: /Applications/Xamarin Android Player.app

=== Xamarin.Mac ===

Version: 2.0.2.35 (Business Edition)

=== Build Information ===

Release ID: 509040005
Git revision: 8010a90f6e246b32364e3fb46ef2c9d1be9c9a2b
Build date: 2015-06-08 16:52:06-04
Xamarin addins: 7e93e9c3503f28770f23ce1b7eafd829919f18e8

=== Operating System ===

Mac OS X 10.10.3
Darwin Kents-Macbook-Pro.local 14.3.0 Darwin Kernel Version 14.3.0
    Mon Mar 23 11:59:05 PDT 2015
    root:xnu-2782.20.48~5/RELEASE_X86_64 x86_64


---Additional Information---
Since the code to reproduce is (trimmed) from a customer sample; I will add it separately as a private comment shortly; along with more detailed steps & observations regarding my reproduction of the issue.
Comment 3 Kent Green [MSFT] 2017-03-22 20:27:50 UTC
Given the age of this bug report, I have recently retested it and can still reproduce the issue per my observations in this bug's description & comment 1. Thus I am leaving this as CONFIRMED. 

## Build information
Xamarin.Forms 2.3.3.180 (Updated from the attached sample)
iPhone 5 iOS 8.4 Simulator

=== Xamarin Studio Community ===

Version 6.3 (build 834)
Installation UUID: 8ef63a7c-1b18-40de-a334-7f78777fcb55
Runtime:
	Mono 4.8.0 (mono-4.8.0-branch/8f6d0f6) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 408000520

=== NuGet ===

Version: 3.5.0.0

=== Xamarin.Profiler ===

Version: 1.3.3
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

=== Apple Developer Tools ===

Xcode 8.2.1 (11766.1)
Build 8C1002

=== Xamarin.Mac ===

Version: 3.2.0.20 (Xamarin Studio Community)

=== Xamarin.Android ===

Version: 7.2.0.2 (Xamarin Studio Community)
Android SDK: /Users/kentgreen/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
		5.1    (API level 22)
		6.0    (API level 23)
		7.0    (API level 24)
		7.1    (API level 25)

SDK Tools Version: 25.2.4
SDK Platform Tools Version: 25.0.3
SDK Build Tools Version: 25.0.2

Java SDK: /usr
java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.65-b01, mixed mode)

Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

=== Xamarin Inspector ===

Not Installed

=== Xamarin.iOS ===

Version: 10.8.0.20 (Xamarin Studio Community)
Hash: f94cf26
Branch: d15-1
Build date: 2017-03-14 12:37:51-0400

=== Xamarin Inspector ===

Version: 0.7.1.0
Hash: 545e74c
Branch: master
Build date: Fri Apr  8 17:34:53 UTC 2016

=== Build Information ===

Release ID: 603000834
Git revision: bb1dff522ee38d9963b4d97f6cfa0f92c85e8ecb
Build date: 2017-03-14 13:38:37-04
Xamarin addins: 8aac7919dc66c1ce0d9d75fe150ddc1ab15fd941
Build lane: monodevelop-lion-d15-1

=== Operating System ===

Mac OS X 10.12.3
Darwin Kents-Macbook-Pro.local 16.4.0 Darwin Kernel Version 16.4.0
    Thu Dec 22 22:53:21 PST 2016
    root:xnu-3789.41.3~3/RELEASE_X86_64 x86_64

=== Enabled user installed addins ===

Xamarin Inspector 0.7.1.0
Comment 4 David Ortinau [MSFT] 2017-08-30 12:27:46 UTC
Created attachment 24475 [details]
screenshot comparison

Tested again with 2.4.0.269-pre2

The Style applied makes the difference.

I'm observing that uneven rows aren't working when the Label does wrap and a Style is used.

From the sample

Style style = new Style(typeof(Label));
					style.Setters.Add(new Setter { Property = Label.FontSizeProperty, Value = Device.GetNamedSize(NamedSize.Small, typeof(Label)) }); // Remove this line and the bug stops