TextPainter(true, true, 0, true).
layer.doCommand( new RowResizeCommand( layer, cell.getRowPosition(), contentHeight + this.spacing * 2 + contentToCellDiff));
The cell heights will only grow and not shrink automatically, because otherwise you would have jumping resizing on scrolling.