Can't scroll to bottom of tableview

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

Try bottomPadding

Thanks!!  That worked.

Follow up question if I can… is there also a way to set a top limit so that short lists won’t be scrolled up off the top of the page?

I usually lock the tableView or scrollView if content is less than a screenful. See recently released API. I think it was setIsLocked. Can be wrong. Not at my dev machine.

Thanks again!

It was tableView:setIsLocked(true) and it only works in Corona build 2109 or newer as I saw in another forum post you were involved in.

You are most welcome! Happy to hear it worked for you. All the best.

Try bottomPadding

Thanks!!  That worked.

Follow up question if I can… is there also a way to set a top limit so that short lists won’t be scrolled up off the top of the page?

I usually lock the tableView or scrollView if content is less than a screenful. See recently released API. I think it was setIsLocked. Can be wrong. Not at my dev machine.

Thanks again!

It was tableView:setIsLocked(true) and it only works in Corona build 2109 or newer as I saw in another forum post you were involved in.

You are most welcome! Happy to hear it worked for you. All the best.