Xamarin.Forms icon indicating copy to clipboard operation
Xamarin.Forms copied to clipboard

[Bug] Misalignment of entry and picker when using RTL on IOS

Open amr-moomen opened this issue 5 years ago • 7 comments

Description

Misalignment of entry (Text & Placeholder) and picker when using RTL on IOS but works fine on android

Steps to Reproduce

  1. Create ContentPage with entry and picker
  2. change FlowDirection of page to RightToLeft
  3. set entry HorizontalTextAlignment="Start"
  4. observe the result

Expected Behavior

  1. Entry Placeholder aligned right (start)
  2. Entry Text aligned right (start)
  3. picker aligned right (start)

Actual Behavior

IOS does not support RTL for entry and picker

  1. Entry Placeholder aligned left (end)
  2. Entry Text aligned left (end)
  3. when writing on existing word Text alignment is still left (end) but after clearing entry alignment adjusts
  4. picker aligned left (end)

Basic Information

  • Version with issue: All versions of IOS
  • Last known good version: None
  • IDE: Visual Studio 2019 Version 16.4.3
  • Platform Target Frameworks:
    • iOS: all versions
  • Android Support Library Version:
  • Nuget Packages: Xamarin.Forms version 4.4.0.991640
  • Affected Devices: All Iphone

Screenshots

lastbug

Reproduction Link

https://github.com/amr-moomen/Entry-Text-and-Picker-Bug

Workaround

amr-moomen avatar Feb 23 '20 14:02 amr-moomen

@pauldipietro Description and Reproduction Link updated

amr-moomen avatar Feb 24 '20 09:02 amr-moomen

@samhouts @pauldipietro we need fix for this issue asap.... ios RTL

mina5500 avatar Feb 24 '20 11:02 mina5500

@amr-moomen @mina5500 I have submitted PR with a fix for this bug. If you need an urgent workaround here is the solution with custom renderers Entry-Text-and-Picker-Bug-master.zip

yurkinh avatar Feb 25 '20 14:02 yurkinh

This is not yet fixed,right ? i'm still having the same issue . Any help ?

Pirate911 avatar Apr 23 '20 15:04 Pirate911

@Pirate911 Not yet. Should be included in 4.6.0 I have uploaded workaround with custom renderers which you can use for now

yurkinh avatar Apr 23 '20 15:04 yurkinh

@yurkinh thank you for the info , I will check that . I appreciate it .

Pirate911 avatar Apr 23 '20 17:04 Pirate911

Was this not fixed? I am having a similar issue with an entry that has HorizontalTextAlignment = End.

When user is typing 2 words, the space between the first and second word is not respected.

cvazquez08 avatar Sep 19 '22 21:09 cvazquez08