md-expansion-panel-header has incorrect height when put into a mat-tab-group
See original GitHub issueBug, feature request, or proposal:
Bug
What is the expected behavior?
Heights of headers in expansion panels are homogenous between tabs
What is the current behavior?
Here’s what I did:
- Create a
mat-tab-group
with at least 2 tabs - Place a
mat-expansion-panel
in each tab, with amat-expansion-panel-header
andmat-panel-title
on each On the second tab, the title on the header is missing padding, while on the first tab, the padding is present.
What are the steps to reproduce?
See attached Plunker: http://plnkr.co/edit/S73nzA?p=preview
What is the use-case or motivation for changing an existing behavior?
These tabs should have consistent behavior according the material design standard
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
@angular/material 2.0.0-beta.12 Angular 4.4.6
Reproduced on Plunker and on Chrome
Is there anything else we should know?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Angular Material tab height - Stack Overflow
To change this, set the dynamicHeight input to true. The tab body will animate its height according to the height of the active...
Read more >Grid height is wrong calculated inside mat-tab - Syncfusion
I built a form with a mat-tab control (Angular Material), with two tabs. Inside each tab I have an ejs-grid with the height...
Read more >Angular Material mat-tab-group - GeeksforGeeks
For this, we need to use a property called mat-align-tabs. If we want to change the theme then we can change it by...
Read more >UNPKG - @angular/material
n * flat - no spacing is placed around expanded panels, showing all panels at the same\n * elevation.\n */\ndisplayMode: MdAccordionDisplayMode ...
Read more >demo/node_modules/@angular/material/@angular ... - GitLab
n * flat - no spacing is placed around expanded panels, showing all panels at the same\n * elevation.\n * @type {?} ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
To further explain the issue: Bug seems to be within
mat-expansion-panel-header
.mat-expansion-panel-header
within the first tab gotheight: 48px;
applied to it.mat-expansion-panel-header
within the second tab didn’t have height applied to it.After expanding the
mat-expansion-panel-header
within the second tab the right style do get applied.This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.