Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug(mat-tab-group): empty space in tab-group after last tab deletion #29681

Open
1 task
gkrzysztofbury opened this issue Sep 3, 2024 · 1 comment
Open
1 task
Labels
area: material/tabs P4 A relatively minor issue that is not relevant to core functions

Comments

@gkrzysztofbury
Copy link

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

In certain conditions when removing tab the blank space remains.

Reproduction

Can be reproduced on angular components demo page: https://material.angular.io/components/tabs/examples#tab-group-dynamic

https://youtu.be/LAtw54i27wE

Steps to reproduce:

  1. Create many tabs, paggination buttons must be visible
  2. Scroll to the last tab
  3. Delete it

Expected Behavior

Deleted tab disappears and whole tab grup is scrolled to fill blank space

Actual Behavior

Deleted tab disappears blank space remains.

Environment

  • Angular:
  • CDK/Material:
  • Browser(s):
  • Operating System (e.g. Windows, macOS, Ubuntu):
@gkrzysztofbury gkrzysztofbury added the needs triage This issue needs to be triaged by the team label Sep 3, 2024
@crisbeto crisbeto added P4 A relatively minor issue that is not relevant to core functions area: material/tabs and removed needs triage This issue needs to be triaged by the team labels Sep 3, 2024
@enstenr
Copy link

enstenr commented Sep 12, 2024

This happens only when the pagination arrow is appearing. once the control is within the visible area, the tabs readjusts automatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: material/tabs P4 A relatively minor issue that is not relevant to core functions
Projects
None yet
Development

No branches or pull requests

3 participants