xamarin/Xamarin.Forms

RTL doesn't switch the margin

オープン

#3,066 opened on 2018/06/18

 (5 件のコメント) (2 件のリアクション) (0 人の担当者)C# (1,926 件のフォーク)batch import
a/rtle/2 :clock2:help wantedin-progresst/bug :bug:up-for-grabs

Repository metrics

Stars
 (5,644 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

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

コントリビューターガイド