How to keep selected TableRow in view (and selected)
I have a TableView with a height of 100%. At onclick of a row, I move a view from below up and shorten the height of the TableView.
But when this happens… the selected row loses focus and if it is a lower row.. can be lost from view..
is there any way to keep the row selected and in view?
2 Answers
-
have you tried just reselecting the row?
tableview.addEventListener('click', function(e) { // do your stuff // reselect the row tableView.selectRow(e.index); });
-
Bloody selectRow isn't doing it..not sure why..
scrollToIndex pulls it into sight though.. so that's halfway sorted lol