Bug 38416 - ListView Sized Incorrectly After Containing Layout's Visibility is Toggled
Summary: ListView Sized Incorrectly After Containing Layout's Visibility is Toggled
Status: VERIFIED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: 2.0.0
Hardware: PC Mac OS
: Normal blocker
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-02-03 23:29 UTC by Jimmy [MSFT]
Modified: 2016-04-06 17:30 UTC (History)
3 users (show)

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


Attachments
repro solution (304.14 KB, application/zip)
2016-02-03 23:29 UTC, Jimmy [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:
VERIFIED FIXED

Description Jimmy [MSFT] 2016-02-03 23:29:17 UTC
Created attachment 14875 [details]
repro solution

### Overview
Toggling the visibility of a Layout that contains a ListView will cause the ListView to be sized greater than the screen’s height. This means that you cannot scroll all the way to the bottom on the ListView because some of the items are rendered off screen.


### Steps to Reproduce
1. Run the Android project in the attached repro solution
2. Press on “Toggle Visibility”
3. Scroll down the ListView


### Expected Results
You should see 70 items in the ListView.


### Actual Results
The ListView appears to be cutoff at the bottom of the screen and the remaining couple of items are not visible.


### Workaround
Toggle the visibility of the ListView as well, not just the containing Layout. Note that the ListView’s visibility needs to be toggled _after_ the containing Layout’s visibility.


### Regression Status
This issue occurs in the latest stable and 2.1 pre-release version. It does _not_ occur in Forms 2.0.0.6482 or below.
Comment 1 Jason Smith [MSFT] 2016-03-11 03:50:26 UTC
Should be fixed in 2.2.0-pre1
Comment 2 Parmendra Kumar 2016-04-06 17:30:11 UTC
I have checked this issue with xamarin.forms 2.2.0-pre1 and its working fine.

Hence closing this issue.