From a8ff2556eb0aef470cc429372a84162cbaada8a7 Mon Sep 17 00:00:00 2001 From: RichardHaselgrove Date: Wed, 20 Mar 2019 13:48:03 +0000 Subject: [PATCH] Manager: task list scrolling Reduce the number of times the task list scrolls to the bottom under routine operations. Fixes #2147 --- clientgui/BOINCBaseView.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/clientgui/BOINCBaseView.cpp b/clientgui/BOINCBaseView.cpp index 4337afccba..109c81828b 100644 --- a/clientgui/BOINCBaseView.cpp +++ b/clientgui/BOINCBaseView.cpp @@ -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; }