I’m playing a bit with newTableView and find that it behaved a bit strange.
When I run the code below (using the attached config.lua) the table seems to be populated too far down in the table:

The code looks like this:
local widget = require("widget") local function itemOnRowRender( event ) -- Get reference to the row group local row = event.row local rowText = display.newText(row, row.index, row.contentWidth \* 0.05, row.contentHeight \* 0.5, native.systemFont, 40 ) rowText.anchorX = 0 rowText:setFillColor( 0 ) end itemTable = widget.newTableView { x = display.contentWidth \* 0.5, y = display.contentHeight \* 0.25, height = display.contentHeight \* 0.4, width = display.contentWidth \* 0.95, onRowRender = itemOnRowRender, } itemTable:deleteAllRows() itemTable:insertRow{rowHeight=100} itemTable:insertRow{rowHeight=100} itemTable:insertRow{rowHeight=100} itemTable:insertRow{rowHeight=100}
Before populating the table I make sure that it’s empty by calling deleteAllRows(). Maybe this is not the correct way of doing it, because if I remove that line of code it seems to work properly.
This is a maximum simplified example. In the real app I’m using datas from a table to populate the newTableView, ala:
itemTable:deleteAllRows() for i = 1, #composer.state.temsList do itemTable:insertRow{rowHeight=100} end itemTable:reloadData()
The result is the same, however. The items are drawn too far down in the TableView. Curiously enough, if I tap/click on the TableView, the content is redraw in the correct place and keep that way througout.
Any idea what is happenging?