question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

md-expansion-panel-header has incorrect height when put into a mat-tab-group

See original GitHub issue

Bug, 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 a mat-expansion-panel-header and mat-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:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
shonderdoscommented, Oct 26, 2017

To further explain the issue: Bug seems to be within mat-expansion-panel-header. mat-expansion-panel-header within the first tab got height: 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.

0reactions
angular-automatic-lock-bot[bot]commented, Sep 7, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found