Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Bug] iOS RadioButton alignment in RTL #11324

Open
Cloudtrackers opened this issue Jul 6, 2020 · 4 comments
Open

[Bug] iOS RadioButton alignment in RTL #11324

Cloudtrackers opened this issue Jul 6, 2020 · 4 comments

Comments

@Cloudtrackers
Copy link

Cloudtrackers commented Jul 6, 2020

Description

If FlowDirection (RTL or LTR) it is always aligned in the left. it happens only in iOS.

Steps to Reproduce

  1. HorizontalOptions is "FillAndExpand"
  2. FlowDirection is RightToLeft
  3. and the Text is Arabic

Expected Behavior

In RTL Mode, RadioButton should be start from the right.

Actual Behavior

In both mode (RTL or LTR), Always start from left

Basic Information

  • Version with issue: Xamarin.Forms 4.7.0.1080

  • Last known good version:

  • IDE: Visual Studio Community 2019 for Mac ,
    Version 8.6.5 (build 23)

  • Platform Target Frameworks:

    • iOS: Version: 6.18.2.1 (Visual Studio Community)
    • Android: Version: 10.3.1.4 (Visual Studio Community)
    • UWP:
  • Android Support Library Version:

  • Nuget Packages:

  • Affected Devices:

Screenshots

Screen Shot 2020-07-06 at 12 30 05 PM
Screen Shot 2020-07-06 at 12 30 05 PM

Reproduction Link

Workaround

@Cloudtrackers Cloudtrackers added s/unverified New report that has yet to be verified t/bug 🐛 labels Jul 6, 2020
@Cloudtrackers Cloudtrackers changed the title [Bug] Android RadioButton alignment in RTL [Bug] RadioButton alignment in RTL Jul 6, 2020
@Cloudtrackers Cloudtrackers changed the title [Bug] RadioButton alignment in RTL [Bug] iOS RadioButton alignment in RTL Jul 6, 2020
@jsuarezruiz jsuarezruiz added e/3 🕒 3 and removed s/unverified New report that has yet to be verified labels Jul 13, 2020
@jsuarezruiz
Copy link
Contributor

Can reproduce the issue. Attach a reproduction sample:
Issue11324.zip

@PureWeen
Copy link
Contributor

Android also appears to be problematic as well
#12440

@hamiddd1980
Copy link

hamiddd1980 commented Oct 31, 2020

Hi. I found out that the Radiobutton (without applying Control Template) is Displayed correctly in Right To Left mode in Android by Enabling android:supportsRtl="true" .
but the problem still exists when a Control Template is applied to the View in RightToLeft Mode in Android and iOS.(following pictures)
also in iOS , the Text and Radiobutton overlaps.
Thanks.
Radiobutton in RightToLeft Mode in iOS with applied ControlTemplate:
RadiobuttonTemplate

Radiobutton in RightToLeft Mode in Android with applied ControlTemplate:
CompareLRwithTemplate

@samhouts samhouts removed this from the 5.0.0 milestone Nov 2, 2020
@hartez
Copy link
Contributor

hartez commented Nov 5, 2020

PR #12742 partially addresses this - it gets the FlowDirection applying to the RadioButton. The default template still has an issue, though; it always places the content to the right of the button itself, so applying RTL is pushing the content off the edge of the container.

@hartez hartez removed their assignment Jul 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants