Reputation: 171
I want to specify a minimum height for each ag-grid row to 40px and allow for dynamic height for any row that exceeds 40px.
this.gridOptions = {
/* rowHeight : 40, */
headerHeight: 100,
pagination: true,
enableSorting: true,
enableColResize: true,
rowDeselection: true,
suppressHorizontalScroll: false,
autoHeight: true
};
gridOptions.autoHeight let's me dynamically change the height, but assigning something like gridOptions.rowHeight or using the getRowHeight(params) to set a default minimum height overrides the autoHeight. Is there a way to resolve this?
Upvotes: 6
Views: 6463
Reputation: 171
Managed to resolve this issue, posting the answer here for anyone else who may have the same problem:
There were a few things I needed to change:
These steps adjusted the height of the rows based on the content.
Upvotes: 2