Manager: task list scrolling

Reduce the number of times the task list scrolls to the bottom under routine operations. Fixes #2147
This commit is contained in:
RichardHaselgrove 2019-03-20 13:48:03 +00:00
parent a6644f9c8d
commit a8ff2556eb
1 changed files with 3 additions and 1 deletions

View File

@ -278,7 +278,9 @@ void CBOINCBaseView::OnListRender(wxTimerEvent& event) {
// to draw the bottom items. This could happen
// if the list was scrolled near the bottom and
// the user selected "Show active tasks."
m_pListPane->EnsureVisible(iDocCount - 1);
if (m_pListPane->GetItemCount() <= m_pListPane->GetCountPerPage()) {
m_pListPane->EnsureVisible(iDocCount - 1);
}
#endif
m_bNeedSort = true;
}