mirror of https://github.com/BOINC/boinc.git
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:
parent
a6644f9c8d
commit
a8ff2556eb
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue