xamarin/Xamarin.Forms

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

Aperta

#8370 aperta il 4 nov 2019

 (6 commenti) (1 reazione) (0 assegnatari)C# (1926 fork)batch import
e/2 :clock2:good first issuehackathonhelp wantedinactivep/iOS 🍎t/bug :bug:up-for-grabs

Metriche repository

Star
 (5644 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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

Guida contributor