How do setMinimumSize() and setFixedSize() interact?

Tags: cell heighttablesiText 7

Is it OK to call setMinimumSize(15) on some cells in a row, and setFixedSize(15) on the other cells of the same row?

What I would like is for iText to increase the row height to accommodate the text in the cells whose minimum height is set, while letting text in cells set to a fixed height clip. Is that what iText does?

If not, how do I achieve this? While we're at it, am I correct that calling neither setMinimumSize() nor setFixedSize() is equivalent to calling setMinimumSize(0), meaning that iText makes the cell as tall as it needs to be to accommodate the text?

Posted on StackOverflow on Feb 28, 2014 by Kartick Vaddadi

There are no setFixedHeight() and setMinimumHeight() methods in iText 7. Please follow this link to see how to answer this question in iText 5.

P.S. Now we use CellRenderer to get/set the height of the cell and manipulate its content. See, for instance, ClipCenterCellContent example.