Bug 28613 - [iOS] ListView Height does not properly report the correct height at first load
Summary: [iOS] ListView Height does not properly report the correct height at first load
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.4.1
Hardware: PC Mac OS
: High major
Target Milestone: ---
Assignee: Jimmy [MSFT]
Depends on:
Reported: 2015-03-31 18:35 UTC by Cody Beyer (MSFT)
Modified: 2017-06-15 18:08 UTC (History)
8 users (show)

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

repro project (51.41 KB, application/zip)
2017-06-15 18:07 UTC, Jimmy [MSFT]

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 Cody Beyer (MSFT) 2015-03-31 18:35:11 UTC
### Description

It appears that the first time that a listview is displayed, it does not completely tie the height to include all of its contents, which restricts it to only showing the first item

### Video

-----iOS [Does Not Work]

-----Android [Works] 

### Test Case


### Steps to Reproduce

1. Open linked test case
2. Deploy to iOS Simulator
3. Type c into the search box
4. Notice only one hit returned
5. Delete the c
6. Type c again

### Expected Results

Step 3 and 6 should have the same results

### Actual Results

Steps 6 has far more entries than step 3

### Version

=== Apple Developer Tools ===

Xcode 6.2 (6776)
Build 6C131e

=== Xamarin.iOS ===

Version: (Business Edition)
Hash: 7e1f69e
Build date: 2015-03-12 15:35:49-0400

=== Xamarin.Android ===

Version: (Business Edition)
Android SDK: /Users/codybeyer/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		2.1   (API level 7)
		2.2   (API level 8)
		2.3   (API level 10)
		3.1   (API level 12)
		4.0.3 (API level 15)
		4.2   (API level 17)
		4.4   (API level 19)
		5.0   (API level 21)
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: Unknown version
Location: /Applications/Xamarin Android Player.app

=== Xamarin.Mac ===

Version: (Business Edition)

=== Build Information ===

Release ID: 509000355
Git revision: 687867254ec3248519ca337fc1c441e7ca9a30db
Build date: 2015-03-30 11:51:21-04
Xamarin addins: cfbd7db36ab63658f7ac03cde8c2ff467f08c278

=== Operating System ===

Mac OS X 10.10.2
Darwin Codys-MBP 14.1.0 Darwin Kernel Version 14.1.0
    Thu Feb 26 19:26:47 PST 2015
    root:xnu-2782.10.73~1/RELEASE_X86_64 x86_64
Comment 1 Danish Akhtar 2015-04-01 04:01:27 UTC
We are also getting this issue after following the steps mentioned in bug description,  first time when enter c in search field  a list view is  not displayed completely. Hence marking this as Confirmed.

Screencast for the same: http://www.screencast.com/t/QIFtg2uq

However with Android its working fine.

ide logs: https://gist.github.com/saurabh360/9585f95a4233fe0e75ed
App output: https://gist.github.com/saurabh360/b10a4033a22beead23f7
Comment 2 Greg Bishop 2015-04-10 10:12:15 UTC
Do you know which version of Android you were using to test that, because the issue is still there for us in our Android project (Api level 19 I think).
Comment 3 Brendan Zagaeski (Xamarin Team, assistant) 2015-05-14 01:55:00 UTC
Both of the test case links in comment 0 are currently 404'ing.

Marking as NEEDINFO because the bug will need to be updated with a valid link to a test case to allow the Xamarin.Forms developers to investigate.
Comment 4 Cody Beyer (MSFT) 2015-08-27 15:31:44 UTC
Code is available at: https://dl.dropboxusercontent.com/u/25708565/SampleProject_GregBishop.zip
Comment 5 Jimmy [MSFT] 2017-06-15 18:07:31 UTC
Created attachment 22931 [details]
repro project

I am attaching a new sample project. I was able to reproduce the issue with Forms

However after updating to Forms this is working as expected. Now when the ListView first appears its height fills the entire screen.
Comment 6 Jimmy [MSFT] 2017-06-15 18:08:13 UTC
Marking as RESOLVED due to comment 5