xamarin/Xamarin.Forms

[Bug, iOS] Tabbed Page TabBar leaving blank space when hidden.

Aberta

#8.370 aberto em 4 de nov. de 2019

 (6 comentários) (1 reação) (0 responsável)C# (1.926 forks)batch import
e/2 :clock2:good first issuehackathonhelp wantedinactivep/iOS 🍎t/bug :bug:up-for-grabs

Métricas do repositório

Stars
 (5.644 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

Description

When using a Tabbed Page custom renderer, a blank space will be left where the Tab Bar was when the TabBar.Hidden property is set to true. Also, the TabBar frame's height is being reset somewhere between ViewWillAppear and ViewDidAppear. TabBar height can be forced to 0 by overriding the View property and setting the TabBar frame height to 0.

Steps to Reproduce

  1. Create a Tabbed Page Custom Renderer.
  2. Set the TabBar.Hidden property to true in the constructor.
  3. Set the TabBar.Frame height to 0 in the ViewWillAppear method.

Expected Behavior

Tab Bar is not visible, page stretches to fill now empty space.

Actual Behavior

Tab Bar is hidden, page does not stretch leaving a blank space where the Tab Bar was.

Basic Information

  • Version with issue: 4.2.0.709249
  • IDE: Visual Studio 2019
  • Platform Target Frameworks:
    • iOS: 13.1
  • Nuget Packages:
  • Affected Devices: iPhone 8 Plus, iPhone 11 Pro

Screenshots

image

Reproduction Link

https://github.com/Nathan-Coit/XamarinHideTabbarTest/tree/master/TabBarTestApp

Guia do colaborador