xamarin/Xamarin.Forms

RTL doesn't switch the margin

开放

#3,066 创建于 2018年6月18日

 (5 条评论) (2 个反应) (0 位负责人)C# (1,926 个派生)batch import
a/rtle/2 :clock2:help wantedin-progresst/bug :bug:up-for-grabs

仓库指标

星标
 (5,644 个星标)
PR 合并指标
 (30 天内没有已合并 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

贡献者指南