Quick Updates

svn path=/trunk/boinc/; revision=25002
This commit is contained in:
Rom Walton 2012-01-06 17:21:21 +00:00
parent 1287b95f73
commit f208d2dba4
1 changed files with 5 additions and 2 deletions

View File

@ -737,8 +737,11 @@ void CBOINCBaseView::PostUpdateSelection(){
wxSize sz = m_pTaskPane->GetVirtualSize(); wxSize sz = m_pTaskPane->GetVirtualSize();
if (sz.GetHeight() > m_pTaskPane->GetSize().GetHeight()) { if (sz.GetHeight() > m_pTaskPane->GetSize().GetHeight()) {
// Account for vertical scrollbar // Account for vertical scrollbar
if (m_pTaskPane->GetSize().GetWidth() != (sz.GetWidth() + 17)) { if (m_pTaskPane->GetSize().GetWidth() != (sz.GetWidth() + wxSystemSettings::GetMetric(wxSYS_VSCROLL_X, NULL))) {
m_pTaskPane->SetSize(sz.GetWidth() + 17, m_pTaskPane->GetSize().GetHeight()); m_pTaskPane->SetSize(
sz.GetWidth() + wxSystemSettings::GetMetric(wxSYS_VSCROLL_X, NULL),
m_pTaskPane->GetSize().GetHeight()
);
} }
} else { } else {
m_pTaskPane->SetSize(sz.GetWidth(), m_pTaskPane->GetSize().GetHeight()); m_pTaskPane->SetSize(sz.GetWidth(), m_pTaskPane->GetSize().GetHeight());