MGR: Work around an apparent bug in wxWidgets 3.0 on Linux which drew blank lines at the top and failed to draw the bottom items. This could happen if the list was scrolled near the bottom and the user selected "Show active tasks."

This commit is contained in:
Charlie Fenton 2015-01-21 23:45:26 -08:00
parent 97e9971cc3
commit 4094edd180
1 changed files with 9 additions and 1 deletions

View File

@ -286,6 +286,14 @@ void CBOINCBaseView::OnListRender(wxTimerEvent& event) {
wxASSERT(GetDocCount() == GetCacheCount());
//fprintf(stderr, "CBOINCBaseView::OnListRender(): m_pListPane->RefreshItems(0, %d)\n", iDocCount - 1);
m_pListPane->RefreshItems(0, iDocCount - 1);
#ifdef __WXGTK__
// Work around an apparent bug in wxWidgets 3.0
// which drew blank lines at the top and failed
// 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);
#endif
m_bNeedSort = true;
}
}
@ -304,7 +312,7 @@ void CBOINCBaseView::OnListRender(wxTimerEvent& event) {
RestoreSelections();
UpdateSelection();
m_bProcessingListRenderEvent = false;
}