I have been trying to find a solution for a couple of days for this, but can't seem to find one.
We have a lot of mat-cards loading and thought it best to add virtual-scrolling, however it immediately changed the display to rows (showing all the mat-cards stacked below one another). I have rewritten the section a couple of times to no avail.
<div fxLayout style="margin-top: 40px" class="row">
<cdk-virtual-scroll-viewport [itemSize]="20" class="example-viewport">
<div fxFlex.gt-md="265px" fxFlex.lg="265px" *cdkVirtualFor="let course of courses | courseDrop : typeView | courseTemp: courseSearch">
<mat-card class="course-card" >
...content
</mat-card>
</div>
</cdk-virtual-scroll-viewport>
</div>