Skip to content

Expansion panel headers inside a dialog jump size upon dialog open #22785

Closed

Description

@jelbourn

Reproduction: https://stackblitz.com/edit/angular-pfrqah?file=src%2Fapp%2Fdialog-overview-example-dialog.html

The expansion panel headers start off with their expanded state height, and then quickly jump to their collapsed height. I suspect this has something to do with angular's animations, but it needs further investigation.

Activity

  1. added
    P2
    G
    animation
    on May 24, 2021
  2. jelbourn commented on May 24, 2021

    @jelbourn
    ContributorAuthor

    Yeah, disabling animations does eliminate the issue (setting [@.disabled]="true")
    https://stackblitz.com/edit/angular-pfrqah-s61yu8?file=src%2Fapp%2Fdialog-overview-example-dialog.html

  3. crisbeto commented on May 31, 2021

    @crisbeto
    Member

    This is a long-standing issue and I'm pretty sure that we have other similar issue reports open. It happens, because of the behavior in @angular/animations where parent animations block all descendant animations.

    I have a PR that tries to tackle it, but we never managed to land it and it might not be perfect, based on Andrew's comment. #11778

  4. crisbeto commented on Mar 6, 2022

    @crisbeto
    Member

    Closing this as a duplicate of #13870 which has been open for longer.

  5. angular-automatic-lock-bot commented on Apr 6, 2022

    @angular-automatic-lock-bot

    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.

  6. locked and limited conversation to collaborators on Apr 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    GP2animationarea: material/dialogarea: material/expansion

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions