xamarin/Xamarin.Forms

[Bug] TabbedPage tabs widths work inconsistently

开放

#7,673 创建于 2019年9月25日

 (1 条评论) (1 个反应) (0 位负责人)C# (1,926 个派生)batch import
e/3 :clock3:help wantedp/Androidt/bug :bug:up-for-grabs

仓库指标

星标
 (5,644 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Description

The TabbedPage's tabs widths work inconsistently.

Steps to Reproduce

  1. Download the official MS sample about tabbedpages: https://github.com/xamarin/xamarin-forms-samples/releases/download/68797/Xamarin_Forms___TabbedPage_with_NavigationPage.zip
  2. Remove one child in the MainPage.xaml tabbedpage.
  3. Launch the app on a tablet or on a phone in landscape orientation.

Expected Behavior

Each tab should use half of the screen.

Actual Behavior

The tabs are very small and doesn't take the whole space when there's one or two tabs.

Basic Information

  • IDE: Visual Studio Enterprise 2019 16.3
  • Platform Target Frameworks:
    • Android: 9.0
  • Nuget Packages: The packages included in the sample

Screenshots

2 tabs tablet
Tablet 2 tabs

4 tabs tablet
Tablet 4 tabs

Phone portrait
Phone portrait

Phone Landscape
Phone Landscape

贡献者指南