I have several tableviews in my app and they each have a different number of rows, but in all cases, I can’t scroll to the bottom of the tableview (unless the table is short enough to fit on the screen without needing to scroll)
I scroll to see the last rows in the table and I can see them on the screen, but when I let go the last 3-4 rows bounce back down off the screen so I cannot click on them.
I tried:
isBounceEnabled = false
but it didn’t do anything
I also tried setting the height value to ridiculously large numbers like 5,000 but still no change in this behavior
Thanks in advance for any help!
Here is my code:
local topLeft = display.screenOriginX
local topY = 214
local screenHeight = display.contentHeight + display.topStatusBarContentHeight
local screnWidth = display.contentWidth - display.screenOriginX * 2
tableView = widget.newTableView
{
left = topLeft,
top = topY,
height = screenHeight,
width = screenWidth,
onRowRender = onRowRender,
onRowTouch = onRowTouch,
listener = scrollListener
}
– Insert as many rows as there are datapoints
for i = 1, dataPoints do
– Insert a row into the tableView
tableView:insertRow
{
--isCategory = false,
rowHeight = 100,
}
end