Bug 39486 - HasUnevenRows=true ignored in Forms iOS project in TableView with CustomCell; row heights are not auto-sized
Summary: HasUnevenRows=true ignored in Forms iOS project in TableView with CustomCell;...
Status: VERIFIED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: iOS ()
Version: 2.1.0
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-03-09 14:40 UTC by Ashley Gazich [MSFT]
Modified: 2016-07-05 15:04 UTC (History)
10 users (show)

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

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 Ashley Gazich [MSFT] 2016-03-09 14:40:50 UTC
### Summary

Customer reports:

> If I create my own custom cell class using a vertical StackLayout, I get automatic sizing of row heights 
> in a ListView with uneven rows set to true. However, if I use the same custom cell class in a TableView 
> also with uneven rows set to true, I do NOT get automatic sizing of row heights

Non-public report of issue: https://kb.xamarin.com/agent/case/294705
Forum post: http://forums.xamarin.com/discussion/62075/does-tableview-hasunevenrows-work-on-ios#latest
Screenshot illustrating issue: http://screencast.com/t/2KcHExZTNGm


### Steps to Reproduce

Test case: https://drive.google.com/a/xamarin.com/file/d/0B_5pvct1AELzQURWUURVbXE3dDQ/view?usp=sharing

1. Tap "TableView: CustomCell”
2. Observe RowHeight is not auto-sized


### Version info (from Xamarin Support)

=== Xamarin Studio ===

Version 6.0 (build 4520)
Installation UUID: c442567b-f0ca-4cb3-b826-d4d99f1d8a93
Runtime:
	Mono 4.3.2 (mono-4.3.2-branch/ba2e5e4) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 403020467

=== Xamarin.Profiler ===

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

=== Apple Developer Tools ===

Xcode 7.0 (8227)
Build 7A220

=== Xamarin.iOS ===

Version: 9.8.0.43 (Enterprise Edition)
Hash: 4390115
Branch: master
Build date: 2016-03-03 18:17:12-0500

=== Xamarin.Mac ===

Version: 2.8.0.42 (Enterprise Edition)

=== Xamarin.Android ===

Version: 6.0.99.544 (Enterprise Edition)
Android SDK: /Users/ashleyg/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)
		5.1    (API level 22)
		6.0    (API level 23)

SDK Tools Version: 24.4.1
SDK Platform Tools Version: 23.1.0
SDK Build Tools Version: 23.0.2

Java SDK: /usr
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)

=== Xamarin Android Player ===

Version: 0.6.5
Location: /Applications/Xamarin Android Player.app

=== Build Information ===

Release ID: 600004520
Git revision: a354b2cb9df4b96f50b0ccb960dbdd5a9155510c
Build date: 2016-02-18 14:52:07-05
Xamarin addins: 8e54979f23feee160d245a3c33e43e77779b1eb4
Build lane: monodevelop-lion-master

=== Operating System ===

Mac OS X 10.11.1
Darwin ashleyg.local 15.0.0 Darwin Kernel Version 15.0.0
    Sat Sep 19 15:53:46 PDT 2015
    root:xnu-3247.10.11~1/RELEASE_X86_64 x86_64
Comment 2 Rui Marinho 2016-05-11 10:13:26 UTC
Should be fixed in 2.3.1-pre1

https://github.com/xamarin/Xamarin.Forms/pull/153
Comment 3 Parmendra Kumar 2016-06-29 18:52:02 UTC
Rui, 

I have checked this issue Xamarin.Forms 2.3.1.110-pre1 and I am still facing same issue. I am using sample: https://www.dropbox.com/s/sfuv0w9hf28qphp/RowHeight1.swf?dl=0

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

Hence reopen this issue.

Please let me know If I have missed anything to verify this issue.

Thanks.
Comment 4 Shawn Castrianni 2016-06-30 09:16:31 UTC
I have confirmed that my bug fix is correct.  However, pull request #217 by Rui Marinho (https://github.com/xamarin/Xamarin.Forms/pull/217) which was committed after my bug fix has caused not only TableView to not work with auto-calculation of row heights, but it broke ListView as well.
Comment 5 Rui Marinho 2016-06-30 12:11:16 UTC
Hi we have identified the regression

https://github.com/xamarin/Xamarin.Forms/pull/242

will be fixed in 2.3.1-pre2
Comment 6 Parmendra Kumar 2016-07-05 15:04:34 UTC
Thanks @Rui,

This issue is working fine with X.F 2.3.1-pre2.

Hence closing this issue.