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

[Tabs] Tab label not fully shown when added past overflow #9178

Open
scottshidlovsky opened this issue Jan 1, 2018 · 2 comments
Open

[Tabs] Tab label not fully shown when added past overflow #9178

scottshidlovsky opened this issue Jan 1, 2018 · 2 comments
Labels
area: material/tabs P4 A relatively minor issue that is not relevant to core functions
Projects

Comments

@scottshidlovsky
Copy link

Bug, feature request, or proposal:

Bug

What is the expected behavior?

Tab is selected after being added to mat-tab-group and is in full view.

What is the current behavior?

Tab is selected and is hidden behind the paginators.

What are the steps to reproduce?

https://stackblitz.com/edit/angular-material2-issue-c9hsyv
In the stackblitz above, add tabs until the paginator is shown. The tab will be partial hidden by the paginator.
material-tab-bug

What is the use-case or motivation for changing an existing behavior?

Navigating the user to the tab they just opened.

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Angular: any
Material: 5.0.0
OS: any
TypeScript: 2.4.2
Browsers: any

Is there anything else we should know?

A related issue which can also be seen in the stackbliz provided, is that the transform of the bar is not correctly updating when removing tabs. Steps to reproduce: Add 4(or enough tabs to show pagination) tabs (pagination will be shown and last tab will be selected).
Remove the third tab by clicking the X on the label. Pagination is shown until clicking on the label. It then updates and removes the pagination controls since the content can fit.
beforeclickinglabel
afterclickinglabel

Both issues seem to be related to the animation of the inkbar. (ink-bar.ts line 35) Performing the left calculation in the animation frame plus the delay of the actual animation happens after all the calculations to show/hide the paginator controls.

@jelbourn jelbourn added feature This issue represents a new feature or feature request rather than a bug or bug fix P4 A relatively minor issue that is not relevant to core functions labels Jan 2, 2018
@andrewseguin andrewseguin changed the title Select mat tab after adding [Tabs] Tab label not fully shown when added past overflow Jan 9, 2018
@andrewseguin andrewseguin removed discussion feature This issue represents a new feature or feature request rather than a bug or bug fix labels Jan 9, 2018
@andrewseguin andrewseguin added this to Bugs in Tabs Jan 23, 2018
@Carniatto
Copy link

any news on this issue? I'm facing the same problem

@aminaelshazly86
Copy link

Is there any updates on this issues ? as I am facing the same issue

@andrewseguin andrewseguin removed their assignment Jun 3, 2023
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
No open projects
Tabs
  
Bugs
Development

No branches or pull requests

5 participants