Getting the warning below when resizing ag-Grid (change size of browser window) and switching between two tabs:
ag-Grid: tried to call sizeColumnsToFit() but the grid is coming back with zero width, maybe the grid is not visible yet on the screen?
I have reproduced the situation in a Stackblitz:
https://angular-jpmxjy.stackblitz.io/
Here is the composition of the test app:
- PrimeNG p-tabMenu at the component: header.component
- ag-Grid at the components: delleverancer.component and leverancer.component.
You will see the warning error in chrome dev tools, when you resize the grid and switch between tabMenu 'Leverancer' and 'Delleverancer'.
You can see the code here:
https://stackblitz.com/edit/angular-jpmxjy
How do I remove this unwanted warning error?