Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Bug] TableView in Shell is too wide with a horizontal scrollbar on landscape iOS #10193

Open
paya-cz opened this issue Apr 3, 2020 · 1 comment

Comments

@paya-cz
Copy link

paya-cz commented Apr 3, 2020

Description

When I put a TableView within a ContentPage of a Xamarin.Forms Shell project, it seems that the ContentPage and TableView both attempt to deal with SafeAreaInsets on iOS somehow at the same time.

In landscape orientation, the safe area insets are overcompensated, thus creating a horizontal scrollbar within the TableView. Using ios:Page.UseSafeArea="False" does not help. I was not able to find any workaround.

Do note that if I am not using Shell, this issue does not happen.

Steps to Reproduce

  1. Create a new Shell app, use the standard template in VS.
  2. Create a simple TableView with a couple of cells directly in a ContentPage.Content.
  3. Run in an iOS simulator with a notch (iPhone 11), rotate to landscape.
  4. Observe the horizontal scrollbar created within the TableView.

Expected Behavior

No horizontal scrollbar is created in landscape, and the TableView dimensions stay within bounds.

Actual Behavior

TableView's inner content seems to overflow the device dimensions, thus leading to a horizontal scrollbar with a clearly broken user experience.

Basic Information

  • Version with issue: 4.5.0.530
  • Last known good version: Unknown
  • IDE: Visual Studio Community 2019 for Mac, Version 8.5.1 (build 42)
  • Platform Target Frameworks:
    • iOS: 8.0
  • Nuget Packages: only Xamarin.Forms
  • Affected Devices: as far as I can tell, all iOS devices with a notch

Screenshots

Screenshot 2020-04-03 at 16 47 26

Screenshot 2020-04-03 at 16 47 30

Reproduction Link

withshell.zip

Workaround

No workaround known.

@paya-cz paya-cz added s/unverified New report that has yet to be verified t/bug 🐛 labels Apr 3, 2020
@pauldipietro pauldipietro added this to New in Triage Apr 3, 2020
@kingces95 kingces95 added a/shell 🐚 p/iOS 🍎 and removed s/unverified New report that has yet to be verified labels Apr 4, 2020
@kingces95 kingces95 moved this from New to Ready For Work in Triage Apr 4, 2020
@samhouts samhouts moved this from Ready For Work to Needs Estimate in Triage Apr 10, 2020
@samhouts samhouts added this to Backlog in Shell Apr 10, 2020
@paya-cz
Copy link
Author

paya-cz commented Apr 27, 2020

A similar bug happens with a ListView also. However, there is a workaround for this bug when using ListView. SImply wrap the listview inside of a StackLayout instead of putting it directly into the ContentPage.Content.

@samhouts samhouts added this to the 5.0.0 milestone Aug 13, 2020
@samhouts samhouts added this to To do in vNext+1 (5.0.0) Aug 13, 2020
@samhouts samhouts removed this from the 5.0.0 milestone Nov 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Shell
  
Backlog
Triage
  
Needs Estimate
Development

No branches or pull requests

3 participants