Changing tableView height results in existing bottom rows being unreachable

The below example should show the behavior, if your insrows() function inserts a few more rows than fit on the screen, when you scroll to the bottom there should be about 2-3 rows that are outside the bottom tableView edge.

I want to have a tableView that expands when swiped.

Is there another property that has to change when the height is changed, or will I have to remove all rows, expand it, then insert them again? (This would rule out animating the height as well as lazy-loading, or at least it may appear ugly.)

tableView1b=widget.newTableView

{

top = 0,

left=0,

width = 320, 

height = 568,

listener = nil,

onRowRender = onRowRender,

onRowTouch = onRowTouch,

onRowUpdate = onRowUpdate,

hideBackground=true,

noLines=true,

}

insrows()

tableView1b.height=300

self.view:insert(tableView1b)

I don’t believe you can change row heights on the fly. They are set during the insert. Our tableView doesn’t support expanding heights.

Rob

Not changing row heights, in fact none of the content is changing, just the container height. (tableView.height). I hoped that by changing height and adjusting some property that is set when it’s created, it would work. But newTableView + insrows() + deleteAllRows + setHeight + insrows didn’t work, so I’ve given up and made another solution.

I don’t believe you can change row heights on the fly. They are set during the insert. Our tableView doesn’t support expanding heights.

Rob

Not changing row heights, in fact none of the content is changing, just the container height. (tableView.height). I hoped that by changing height and adjusting some property that is set when it’s created, it would work. But newTableView + insrows() + deleteAllRows + setHeight + insrows didn’t work, so I’ve given up and made another solution.