Bug 60543 - Gap between ListView.Header and Toolbar in iOS 11.1
Summary: Gap between ListView.Header and Toolbar in iOS 11.1
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 2.5.0
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2017-11-06 23:32 UTC by wadalo73
Modified: 2017-11-14 01:25 UTC (History)
3 users (show)

Tags: ios 11, listview, header, toolbar, ac
Is this bug a regression?: ---
Last known good build:

broken behavior in ios 11.1 (14.62 KB, image/png)
2017-11-06 23:32 UTC, wadalo73
Expected behavior on iOS <= 10.3 (17.05 KB, image/png)
2017-11-06 23:37 UTC, wadalo73

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 60543 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 wadalo73 2017-11-06 23:32:11 UTC
Created attachment 25573 [details]
broken behavior in ios 11.1

On iOS 11.1 in Xamarin Forms 2.4 latest (also on 2.5-pre), there is a gap between the toolbar and the first element, and that element is cut off. On iOS 10.3, the gap is not there. See attached screenshots.

The behavior seems similar to a question on Stack Overflow that was reported as far back as iOS 7, with workarounds provided. https://stackoverflow.com/questions/19111451/ios-7-uitableview-how-to-remove-space-between-navigation-bar-and-first-cell

<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             Title="My App"

        <ToolbarItem Text="Settings" Command="{Binding OpenSettingsCommand}"></ToolbarItem>

    <StackLayout VerticalOptions="Fill" HorizontalOptions="Fill">
        <ListView x:Name="ViewModelsListView" ItemsSource="{Binding ViewModels}" RowHeight="75" Margin="20">
            <TableView HeightRequest="50">
                            Text="My switch: "
                            IsEnabled="{Binding SwitchBinding}" />

Comment 1 wadalo73 2017-11-06 23:37:13 UTC
Created attachment 25574 [details]
Expected behavior on iOS <= 10.3

This is what I expect it to look like. It works in iOS 10.3 and lower.