Skip to content

bug(Tabs): Paginator items are not shown if layout of view changes #23206

Closed
@MeMeMax

Description

@MeMeMax

Reproduction

Steps to reproduce:

  1. Go to this stackblitz https://stackblitz.com/edit/angular-ptyfdp?file=src/app/tab-group-dynamic-example.html
  2. Add or delete tabs so that you have the maximum of tabs shown without having a paginator
  3. Click on "expand" button so that the layout of the view changes

Expected Behavior

I would expect that if the layout of the view changes and the tabs do not have enough space anymore the paginator elements are shown automatically. If the tabs have enough space the paginator elements should disappear.

Actual Behavior

Paginator elements are only added when I resize the window. Not when the layout changes.

Environment

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

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/tabsfeatureThis issue represents a new feature or feature request rather than a bug or bug fix

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions