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] Dynamic height does not work when content has changed #3191

Open
Ploppy3 opened this issue Feb 19, 2017 · 7 comments
Open

[Tabs] Dynamic height does not work when content has changed #3191

Ploppy3 opened this issue Feb 19, 2017 · 7 comments
Labels
area: material/tabs P4 A relatively minor issue that is not relevant to core functions
Projects

Comments

@Ploppy3
Copy link

Ploppy3 commented Feb 19, 2017

Bug, feature request, or proposal:

Bug

What is the expected behavior?

Tabs should transition height properly when content is added dynamically.

What is the current behavior?

Adding content to a tab does not modify the 'base animation height' resulting in weird animations.

What are the steps to reproduce?

http://plnkr.co/edit/Sccmy7os1nuaELrradRv?p=preview
http://plnkr.co/edit/ZSBCT8P9xCi04rrKSCu3?p=preview
https://stackblitz.com/edit/angular-humdjf?file=src%2Fapp%2Fapp.component.html
Add content dynamically and change tab.

Is there anything else we should know?

Documentation is missing for dynamicHeight on material.angular.io

@andrewseguin
Copy link
Contributor

Thanks for the heads up about documentation, and for providing a good example in plunker. Will take a look into this

@andrewseguin andrewseguin added this to Untriaged Bugs in Tabs Oct 19, 2017
@andrewseguin andrewseguin changed the title Tab's 'dynamicHeight' does not work with dynamically added content [Tabs] Dynamic height does not work when content has changed Oct 19, 2017
@andrewseguin andrewseguin moved this from Untriaged Bugs to Bugs in Tabs Oct 19, 2017
@andrewseguin andrewseguin added P4 A relatively minor issue that is not relevant to core functions and removed mat-tabs labels Oct 19, 2017
@leocaseiro
Copy link
Contributor

Plunker updated with Angular Material 5.0.0-rc http://plnkr.co/edit/knB7FM?p=preview

@Ploppy3
Copy link
Author

Ploppy3 commented Oct 1, 2018

@italodeandra
Copy link

Hey, have you found any workaround?

@simeyla
Copy link

simeyla commented Mar 22, 2019

@ItaloAndrade the demo works well for me. What problem are you seeing?

@italodeandra
Copy link

italodeandra commented Mar 22, 2019 via email

@Twazny
Copy link

Twazny commented Jan 19, 2022

Hi, I also have this problem. It is still reproducible in @Ploppy3 demo.

Steps:

  1. Click 10 times "Add content dynamically" button
  2. Go to second tab "Tab 2". You can notice that height of current tab "Tab 1" is instatly shrinked to initial size and then starts transition animation to second tab.
  3. Click 10 times "Add content dynamically" button on second tab.
  4. Go to first tab "Tab 1". Now it is even more visible, becase "Tab 2" also instantly shrinks and then starts growing to size of first tab during transition.

Next transitions have correct animations. Problem occurs only during first transition after tab content (and its height) was changed.

@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

7 participants