shlomiassaf / ngrid

A angular grid for the enterprise

Home Page:https://shlomiassaf.github.io/ngrid

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

t00 opened this issue · comments

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.