xamarin / XamarinCommunityToolkit

The Xamarin Community Toolkit is a collection of Animations, Behaviors, Converters, and Effects for mobile development with Xamarin.Forms. It simplifies and demonstrates common developer tasks building iOS, Android, and UWP apps with Xamarin.Forms.
MIT License
1.59k stars 472 forks source link

[Bug] TabView - TabIndicator doesn't show when flow direction is RTL #1982

Open Tarekka opened 1 year ago

Tarekka commented 1 year ago

Description

TabView - TabViewIndicator goes off the screen when flow direction is RTL. This is caused by the UpdateTabIndicatorPosition method not taking RTL into consideration when calculating the position to translate the indicator to.

Steps to Reproduce

  1. Create a Xamarin Forms project and set FlowDirection to RTL
  2. Add xct TabView with 2 tabs with a TabIndicatorColor (eg: Blue)
  3. Open the app, at first you notice the TabIndicator animating off the screen, and no matter how you switch tabs you won't see it under any of the tabs.
  4. Set to LTR, everything works as expected

Expected Behavior

When FlowDirection is set to RTL, the TabIndicator doesn't go off screen

Actual Behavior

When FlowDirection is set to RTL, the TabIndicator goes off screen

Basic Information

Workaround

Reproduction imagery