adjust the cell size when the text is set programmatically