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

貢獻者指南