if table have 10 rows, scroll to last rows like this
-------- --------
1 | 1 | 5 | 5 |
-------- --------
........ scroll to .......
-------- --------
5 | 5 | 9 | 9 |
-------- --------
delete table data to one row,than table will display like this
--------
5 | 5 |
--------
1 | 1 |
--------
Then scrolled first row will display again.
This is cause by this:
if (m_TopRow < getFixedRowCount()) {
m_TopRow = getFixedRowCount();
}
if (m_TopRow > m_Model.getRowCount())
m_TopRow = 0;
they should be chang to:
if (m_TopRow > m_Model.getRowCount())
m_TopRow = 0;
if (m_TopRow < getFixedRowCount()) {
m_TopRow = getFixedRowCount();
}