xamarin/Xamarin.Forms

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

开放

#8,370 创建于 2019年11月4日

 (6 条评论) (1 个反应) (0 位负责人)C# (1,926 个派生)batch import
e/2 :clock2:good first issuehackathonhelp wantedinactivep/iOS 🍎t/bug :bug:up-for-grabs

仓库指标

星标
 (5,644 个星标)
PR 合并指标
 (30 天内没有已合并 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

贡献者指南