Skip to content

Expansion Panel - Header height animation jump when inside navigation tabs #14759

Closed
@rbogdy

Description

@rbogdy

What is the expected behavior?

The height to be rendered directly with the set values and not 'jump' to the new value from the 'default hard coded' ones

What is the current behavior?

The mat-expansion-panel-header height will jump to the newly set value (even when using the new MAT_EXPANSION_PANEL_DEFAULT_OPTIONS injection token) resulting in ugly visuals. This is very evident when switching between tabs for example

What are the steps to reproduce?

https://stackblitz.com/edit/angular-e2of2s

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

Angular: 7.2.0
Material: 7.2.1
Browser: Chrome or Mozilla@latests

Is there anything else we should know?

In the StackBlitz example if you change the 'collapsedHeight' and 'expandedHeight' to the default value of '48px' they will not 'jump' anymore

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentanimationThis issue is related to Angular animations or CSS animationsarea: material/expansion

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions