Experiencing issues with spacing of expansion panels within a flex row.
Multiple Mat-Expansion-Panel
are inside an ngFor
loop, each containing varying amounts of items.
When one panel is expanded, the adjacent panel also expands to the same height without displaying its items.
I have provided a stackblitz example for reference: https://stackblitz.com/edit/mat-expansion-panel-x8qz9z
Considering that my panellist component is used multiple times with different layouts, should I create two separate columns within the *ngFor
in order to resolve this issue?
Edit1: Attempted using height:max-content
on the mat-expansion-panel
, but then panel 3 does not move up under panel one.
The problem persists when applying align-items:baseline;
on the container as well.
Regards,