Dear All,
I am implementing a chat screen, for which I am using widget.newTableView.
However, the challenge is to vary the row height based on the text volume to be rendered. Is there a way to do that efficiently?
-- Create a tableView chatTable = widget.newTableView { top = display.screenOriginY + 80, left = 10, width = display.contentWidth - 20, height = display.contentHeight + display.screenOriginY - 80, onRowRender = onRowRender, onRowTouch = onRowTouch, } chatTable:insertRow{ rowHeight = 50, -- this needs to be variable? params = {....}, }
In function onRowRender, we do have rowTitle.height and row.contentHeight but isn’t it too late and the row is already rendered?
Any help will be much appreciated!
Cheers,
Anshuman