shlomiassaf/ngrid

When using vScrollNone, grid is not visible when container has height unset or set to auto

t00 opened this issue · 0 comments

t00 commented

Before upgrade (from 2.x to 4.0) vScrollNone directive worked fine and allowed placing a grid in a normal container without need to set it's size.

After upgrade this directive stopped working. I noticed contain: strict causing this issue on virtual scroll container and implemented a css fix:

.pbl-ngrid-container .cdk-virtual-scroll-disabled {
  contain: unset;
}

Not sure what might be other implications of that fix, but for when virtual scroll is not needed, it seems to do the job.