AG-Grid text wrap with max row height?

Hi:

I want to enable the AG-Grid to display user input text, but since some of the text can be very very long, I want to be able to enable text wrap but I also want to have max row height set to some max number. Otherwise, the entire window will only display one row. I am not sure if I can set the getrowHeight function with a if-else condition or if there are other ways to set the max row height?

Thanks in advance for any suggestion.

best
Mike

Hello @chainster_mike,

This is very tricky indeed, I have tried to implement something by adding a max height, but all it did was keep the text from expanding, event though the row kept growing.

I’m not sure if there is a way to fix…

Maybe getRowHeight can have a ceiling to the calculation?