xamarin/Xamarin.Forms

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

Open

#9,052 opened on Dec 30, 2019

 (2 comments) (0 reactions) (0 assignees)C# (1,926 forks)batch import
4.3.0e/2 :clock2:good first issuehelp wantedi/regressioninactivep/UWPt/bug :bug:up-for-grabs

Repository metrics

Stars
 (5,644 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

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

Contributor guide