xamarin / Xamarin.Forms

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

[iOS] ListView with GroupShortNameBinding and RTL language has ViewCell partially off screen #3180

Open YPITDataOmar opened 6 years ago

YPITDataOmar commented 6 years ago

Description

When defining/binding the ListView option GroupShortNameBinding in XAML for RTL language (e.g. Arabic) shifts the whole ViewCell over to the right and causes part of our grid in the viewcell to be off screen. RTL for Android looks fine. Everything works fine for LTR languages and removing the GroupShortNameBinding has everything looking as it should.

Steps to Reproduce

  1. Create a ListView with Grouping enabled with structure like this:

    // we use first column as thin color coding flag which doesn't appear on screen in RTL for iOS

// .... whatever for content ...

  1. Set GroupShortNameBinding in ListView
  2. Select RTL language

Expected Behavior

Grid should be fully displayed on the screen for ListView regardless of language, with jumplist on the appropriate side of the screen.

Actual Behavior

On iOS, for RTL language (e.g. Arabic), the ListView shifts the whole ViewCell over to the right and causes part to be off screen. Looks to be about a 15-20px shift. If you remove GroupShortNameBinding, then on iOS with RTL, all looks fine. LTR languages look fine with the GroupShortNameBinding defined or not.

Looks fine on Android for both RTL and LTR languages since there is no jumplist.

Basic Information

hartez commented 6 years ago

Also reproducible in Control Gallery if you set the device language to Arabic and navigate to issue 26868 (make sure to build with the project option iOS Build -> Internationalization -> mideast checked).

samhouts commented 4 years ago

This issue doesn't seem to have had any activity in a long time. We're working on prioritizing issues and resolving them as quickly as we can. To help us get through the list, we would appreciate an update from you to let us know if this is still affecting you on the latest version of Xamarin.Forms, since it's possible that we may have resolved this as part of another related or duplicate issue. If we don't see any new activity on this issue in the next 30 days, we'll evaluate whether this issue should be closed. Thank you!

YPITDataOmar commented 4 years ago

Hi, thanks for circling back to this issue, which still exists. As previously mentioned, it appears that the jumplist shifts the ListView to the right when in RTL mode (e.g. Arabic) thus pushing content off the screen. The ListView looks fine if you remove the jumplist (shifts back to the left) or are using any LTR languages. Things look fine in Android.

Our current build is running on XF 4.7.0.1080 with iOS 13.16