Bug 39431 - iOS: ListView incorrectly calculating it's scroll height when in a NavigationPage and contained in a AbsoluteLayout
Summary: iOS: ListView incorrectly calculating it's scroll height when in a Navigation...
Alias: None
Product: Forms
Classification: Xamarin
Component: iOS ()
Version: 2.1.0
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2016-03-08 01:08 UTC by Cliff Cawley
Modified: 2017-01-05 22:26 UTC (History)
8 users (show)

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

Sample Project that reproduces bug (260.56 KB, application/zip)
2016-03-08 01:08 UTC, Cliff Cawley
Revised Sample (50.88 KB, application/zip)
2016-03-10 23:36 UTC, Cliff Cawley

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 39431 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:

Description Cliff Cawley 2016-03-08 01:08:26 UTC
Created attachment 15296 [details]
Sample Project that reproduces bug

Sample project attached which reproduces on both Android/iOS.

This was recently introduced in
It works fine on

## Steps to reproduce

1. Download attached sample
2. Build All and run on iOS/Android

## Expected result

Listview can be scrolled all the way to the bottom.
Listview extends to the bottom and can be scrolled to the bottom.

## Actual result

You can't scroll all the way to the bottom, items are still off the bottom of the view.

The Listview doesn't completely cover the view, instead it's only about 3/4 covered.

## Notes
In App.cs if you use:
    MainPage = new ViewDemo();
instead of:
    MainPage = new NavigationPage( new ViewDemo());
Then it works fine
Comment 1 Jason Smith [MSFT] 2016-03-10 20:25:04 UTC
You left the arrangement of the ListView as undefined, this resolves the issue:

<ListView AbsoluteLayout.LayoutBounds="0, 0, 1, 1" AbsoluteLayout.LayoutFlags="All" x:Name="ListDemo" HasUnevenRows="true" IsPullToRefreshEnabled="true">
Comment 2 Cliff Cawley 2016-03-10 23:36:13 UTC
Created attachment 15355 [details]
Revised Sample

Okay sorry about that, looks like I simplified the demo too much up to a point where it looked like it was the same bug.

I've now set it up how I have it in my project, but just culled some extra cruft, so you'll see some additional additional nesting of layouts because in my project I have other things in there.

I've basically embedded it within a MasterDetailPage.

The scrolling is now broken again.
Comment 3 Cliff Cawley 2016-03-10 23:36:34 UTC
Re-opened as I messed up when I created the original demo
Comment 4 Cliff Cawley 2016-03-11 00:10:17 UTC
Oh and it works fine on Android, it's just busted on iOS.
Comment 5 Cliff Cawley 2016-03-11 00:38:14 UTC
Additionally, in the new sample, it appears to be the AbsoluteLayout. If you remove that, it works.

I can't remove it in my project though, because I have several children that I use to position a few things over the top of each other