Skip to content

[Tabs] Scrollbar shows on tab changes #27380

Open
@CommanderAlchemy

Description

@CommanderAlchemy

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

This was discussed previously in #6104

Last comment was:
Confirmed that there is no scrollbar during animation in v15: https://stackblitz.com/edit/angular-shzd6r-pwokjj (tested on Chrome w/ MacOS) - @mmalerba

However using the stackblitz example in Google Chrome, shows the scrollbar each time you tab from Title 1 to Title 2.

Using dynamicHeight on mat-tab-group still works as a workaround.

Reproduction

StackBlitz link: Link
Steps to reproduce:

  1. switch tabs

Expected Behavior

No scrollbar

Actual Behavior

Scrollbar flashes for a short moment

Environment

  • Angular: 16.1.2
  • CDK/Material: 16.1.2
  • Browser(s): Google Chrome
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4A relatively minor issue that is not relevant to core functionsarea: material/tabs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions