xamarin/Xamarin.Forms

RTL doesn't switch the margin

Open

#3,066 opened on Jun 18, 2018

View on GitHub
 (5 comments) (2 reactions) (0 assignees)C# (1,926 forks)batch import
a/rtle/2 :clock2:help wantedin-progresst/bug :bug:up-for-grabs

Repository metrics

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

Description

Description

switch from LTR to RTL doesn't mirror the margin

Steps to Reproduce

  1. add the below XAML to a content page and check the result `

     <Label Text="LeftToRight"
            Margin="10" />
     <Grid FlowDirection="LeftToRight">
         <BoxView Margin="50,0,0,0"
                  WidthRequest="100"
                  HeightRequest="100"
                  Color="Red"
                  HorizontalOptions="Start"
                  VerticalOptions="Start"
                  FlowDirection="LeftToRight" />
     </Grid>
     <Label Text="RightToLeft"
            Margin="10" />
     <Grid FlowDirection="RightToLeft">
         <BoxView Margin="50,0,0,0"
                  WidthRequest="100"
                  HeightRequest="100"
                  Color="Red"
                  HorizontalOptions="Start"
                  VerticalOptions="Start"
                  FlowDirection="RightToLeft" />
     </Grid>
    

    `

Expected Behavior

switching from LTR to RTL Should mirror the margin

Actual Behavior

switching from LTR to RTL doesn't mirror the margin

Basic Information

  • Platform Target Frameworks:

    • iOS:
    • Android:
    • UWP:
  • Nuget Packages: xamarin forms 3

Screenshots

current state screenshot_1529295623

desired state screenshot_1529295404

Reproduction Link

RTLMarginIssue.zip

Contributor guide