xamarin/Xamarin.Forms

[Bug] [UWP] Switch takes up more horizontal space then before

Aperta

#9052 aperta il 30 dic 2019

 (2 commenti) (0 reazioni) (0 assegnatari)C# (1926 fork)batch import
4.3.0e/2 :clock2:good first issuehelp wantedi/regressioninactivep/UWPt/bug :bug:up-for-grabs

Metriche repository

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

Descrizione

Description

Switch seems to take up more horizontal space in XF 4.3+.

Steps to Reproduce

Add a Switch to a StackLayout with Horizontal orientation

Expected Behavior

Switch only takes the horizontal space it needs

Actual Behavior

It's taking more space then needed

Basic Information

  • Version with issue:
  • Last known good version: 4.2
  • IDE: VS2019 16.4.2
  • Platform Target Frameworks:
    • UWP: 16299
  • Android Support Library Version:
  • Nuget Packages:
  • Affected Devices:

Screenshots

Yellow is the background color of the switch

UWP (Win 10 1903) image

Android image

iOS image

Reproduction Link

SwitchRepro.zip

Guida contributor