Skip to content
This repository was 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

@kobbok

Description

@kobbok

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working. Breaky break.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions