I'm facing a perplexing issue where the ag-grid table in my Angular 12 / Bootstrap 5 application renders with a height of 0px.
Below is the link to the rendered table:
Upon inspecting with Chrome's debug tool, I noticed that the following div is calculated with a height of 0px:
The table is within a Bootstrap container directly beneath the body. Here's the HTML of my component:
<div class="container-fluid">
<ag-grid-angular (cellClicked)="onCellClicked($event)"
(gridReady)="onGridReady($event)"
[animateRows]="true"
[columnDefs]="columnDefs"
[defaultColDef]="defaultColDef"
[rowData]="rowData$ | async"
[rowSelection]="'multiple'"
style="width: 100%; height: 100%"
></ag-grid-angular>
<!--<router-outlet></router-outlet>-->
</div>
I have tried various solutions such as using ag-grid SCSS imports, themes, etc., but none have resolved the issue.