xamarin / Xamarin.Forms

Xamarin.Forms is no longer supported. Migrate your apps to .NET MAUI.
https://aka.ms/xamarin-upgrade
Other
5.63k stars 1.87k forks source link

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

Open amr-moomen opened 4 years ago

amr-moomen commented 4 years ago

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

Screenshots

lastbug

Reproduction Link

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

Workaround

amr-moomen commented 4 years ago

@pauldipietro Description and Reproduction Link updated

mina5500 commented 4 years ago

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

yurkinh commented 4 years ago

@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

Pirate911 commented 4 years ago

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

yurkinh commented 4 years ago

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

Pirate911 commented 4 years ago

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

cvazquez08 commented 2 years ago

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.