diprokon / ng-table-virtual-scroll

Virtual Scroll for Angular Material Table
https://diprokon.github.io/ng-table-virtual-scroll
MIT License
135 stars 42 forks source link

If Table is rendered but not visible then the grid wont scale correctly #26

Closed blogcraft closed 3 years ago

blogcraft commented 4 years ago

In a Component have 3 tabs. In each tab I have a virtual Scroll table and are loaded when the component loads (ngOnInit).

As just 1 table is visible at a time, the grids that are hidden appear collapsed (only showing header and footer) when changing to it's tab. And only show themselves when resizing the window.

Markus-Ende commented 4 years ago

Have the same issue. A work-around for me was, to dispatch a resize event after setting a new data source:

setTimeout(() => window.dispatchEvent(new Event('resize')), 0);
blogcraft commented 4 years ago

The problem with that is that it will re render the charts I use in the same window and is a very big hit in performance.

diprokon commented 4 years ago

Please, check this comment