Missing rows in TableVie Widget

@jonjonsson You are 100% correct. I did not notice it while scanning the code.

To the OP: I think this is what you want when calling newTableView:

width = display.contentWidth - 60,
height = display.contentHeight - 150,

Sorry, I have tryed also this solution, but still having the same bug. The only thing that work for me is bottomPadding. This is the code I have tryed:

 tableView = widget.newTableView { top = 150, left = 30, width = display.contentWidth -60, height = display.contentHeight - 150, backgroundColor = {248,236,199}, --maskFile = "assets/mask-320x366.png", listener = tableViewListener, noLines = true, --isBounceEnabled = false, rowTouchDelay = 150, --bottomPadding = 400, --hideBackground = true, onRowRender = onRowRender, onRowTouch = onRowTouch, scrollBarOptions = { sheet = scrollBarSheet, --reference to the image sheet topFrame = 1, --number of the "top" frame middleFrame = 2, --number of the "middle" frame bottomFrame = 3 --number of the "bottom" frame }, }

I see you are using the old color values. What build are you on and are you using compatibility mode for graphics 1.0?

Is there anything on the bottom of the screen that migth be covering your table view?

Also try removing the scrollBarOptions and noLines and see if that fixes it.

Another thing you can try is to change your onRowRender to just insert a rect the size of the row or a simple fixed line of text and nothing else. Note this from the docs:

– Cache the row “contentWidth” and “contentHeight” because the row bounds can change as children objects are added
    local rowHeight = row.contentHeight
    local rowWidth = row.contentWidth

That is before you add anything.

It might be that some content or text is throwing it off. There are many posibilities here.

This solved my problem!

I’m still using graphics 1.0. It would have been a big mess to go 2.0 for my game. On the bottom I have a rectangle, which is covering a bit of the table, but the the last 4 rows are still out of the display. noLines = false did not help either nor removing the scrollBarOptions. 

For now only bottomPadding solves the trick.

I will try this one “Another thing you can try is to change your onRowRender to just insert a rect the size of the row or a simple fixed line of text and nothing else.” and let you know. Thank you for the help…