xamarin/Xamarin.Forms

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

オープン

#8,370 opened on 2019/11/04

 (6 件のコメント) (1 件のリアクション) (0 人の担当者)C# (1,926 件のフォーク)batch import
e/2 :clock2:good first issuehackathonhelp wantedinactivep/iOS 🍎t/bug :bug:up-for-grabs

Repository metrics

Stars
 (5,644 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

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

コントリビューターガイド