I reported a tableView bug about deleting rows on June 30th, number 1153.
I consider the bug quite bad, table view behaves very erratically after deleting a row. I can not publish without this being fixed. Not that I plan on publishing in the next few weeks so I’m not too stressed (until I saw that comment from Walter).
After deleting a row and tapping anywhere on table view things start jumping around. Also deleting more than 1 row they animate incorrectly.
Made a video: http://www.youtube.com/watch?v=VbwdjMmLrJI
Each time the tableview moves up or down I’m just tapping on the tableview (no dragging).
This is build 1153, but bug was also in at least previous 2 daily before that. I haven’t tried more than that.
Minimum code to reproduce:
[lua]
display.setStatusBar( display.HiddenStatusBar )
local widget = require( “widget” )
local tableView
local function onRowTouch( event )
local rowNumber = event.target.index
if event.phase == ‘tap’ then
tableView:deleteRow(rowNumber)
end
end
local function onRowRender( event )
local row = event.row
local rowTitle = display.newText( row, "DELETE ME " … row.index, 0, 0, nil, 14 )
rowTitle.x = display.contentWidth / 2
rowTitle.y = row.contentHeight * 0.5
rowTitle:setTextColor( 0, 0, 0 )
end
– Create a tableView
tableView = widget.newTableView
{
width = display.contentWidth,
height = display.contentHeight,
onRowRender = onRowRender,
onRowTouch = onRowTouch,
}
tableView:insertRow{rowHeight = 40}
tableView:insertRow{rowHeight = 40}
tableView:insertRow{rowHeight = 40}
[/lua]