Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Set accordion "CCollapse" height to auto on animation end #383

@IHIutch

Description

@IHIutch

Describe the bug
CCollapse component retains the final height after the open animation finishes. This causes the wrapping div to stay the same size, even when the contents inside change (grow/shrink). Setting it to "auto" once the animation is complete would allow the wrapper to scale with the content.

To Reproduce
Steps to reproduce the behavior:

  1. Add an Accordion component with some content inside the CAccordionPanel slot
  2. Change the contents so that it has a smaller or bigger height than before
  3. The CCollapse stays the same size

Expected behavior
CCollapse gets set to height: auto so that it scales with the inner content

Screenshots
My case was a nested accordion:
Kapture 2021-02-03 at 11 31 52

Adding height: auto:
Kapture 2021-02-03 at 11 32 44

Thanks!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions