Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Bug] TabView's TabIndicatorView behaves strangely when changing between portrait and landscape modes #1996

Open
kobbok opened this issue Nov 9, 2023 · 0 comments
Labels
bug Something isn't working. Breaky break.

Comments

@kobbok
Copy link

kobbok commented Nov 9, 2023

Description

The TabView's TabViewIndicator seems to sometimes have an incorrect size and/or position when loading and rotating between portrait and landscape modes on both Android and iOS.

Probably related to #1982 and partially fixed by #1983

Link to Reproduction Sample

https://github.com/kobbok/XCTTabViewBug

Steps to Reproduce

  1. Open the app, see that the tab view indicator only takes up a small portion of the area of the first tab
  2. Rotate into portrait mode
  3. Select Tab A
  4. Rotate into landscape mode
  5. Note that the indicator has now maybe moved, depending on which tab was selected previously, its size also hasn't changed
  6. Rotate into portrait mode
  7. The indicator has now again maybe moved, and changed sizes

Expected Behavior

The indicator should still be on same tab, and it should be covered completely, without going over into other tabs or covering only portion of the tab, or even going off screen.

Actual Behavior

The indicator sometimes shrinks, sometimes grows, sometimes it does not update its position and goes off screen.

Basic Information

  • Version with issue: 2.0.6 2.0.5 1.1.0
  • Last known good version: N/A
  • IDE: Visual Studio
  • Platform Target Frameworks:
    • iOS: 17.0
    • Android: 13.0
  • Android Support Library Version:
  • Nuget Packages:
  • Affected Devices: Andorid, iPhone and iPad

Workaround

Reproduction imagery

TabViewBug

@kobbok kobbok added the bug Something isn't working. Breaky break. label Nov 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working. Breaky break.
Projects
None yet
Development

No branches or pull requests

1 participant