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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Tarekka opened this issue · comments

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

  • Version with issue:
  • Last known good version:
  • IDE:
  • Platform Target Frameworks:
    • iOS: 16
    • Android: 13
    • UWP:
  • Android Support Library Version:
  • Nuget Packages:
  • Affected Devices:

Workaround

Reproduction imagery