Scenario:
quick fix was to
Question: what is the proper way to overcome this zero height?
if you are using an Observable, make sure to resolve it with *ngIf and the async pipe. Important: the html element is an ng-container, because it may not be rendered for the min-width to work!
.list {
min-height: 100%;
}
.item {
height: 100px;
}
When using an Observable as a source
<ng-container *ngIf="obs$ | async; let data">
<cdk-virtual-scroll-viewport itemSize="100" class="list">