From f208d2dba49cd71e3516f2d9e43414db650a7b13 Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Fri, 6 Jan 2012 17:21:21 +0000 Subject: [PATCH] Quick Updates svn path=/trunk/boinc/; revision=25002 --- clientgui/BOINCBaseView.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/clientgui/BOINCBaseView.cpp b/clientgui/BOINCBaseView.cpp index b2fea56701..aeace951d0 100644 --- a/clientgui/BOINCBaseView.cpp +++ b/clientgui/BOINCBaseView.cpp @@ -737,8 +737,11 @@ void CBOINCBaseView::PostUpdateSelection(){ wxSize sz = m_pTaskPane->GetVirtualSize(); if (sz.GetHeight() > m_pTaskPane->GetSize().GetHeight()) { // Account for vertical scrollbar - if (m_pTaskPane->GetSize().GetWidth() != (sz.GetWidth() + 17)) { - m_pTaskPane->SetSize(sz.GetWidth() + 17, m_pTaskPane->GetSize().GetHeight()); + if (m_pTaskPane->GetSize().GetWidth() != (sz.GetWidth() + wxSystemSettings::GetMetric(wxSYS_VSCROLL_X, NULL))) { + m_pTaskPane->SetSize( + sz.GetWidth() + wxSystemSettings::GetMetric(wxSYS_VSCROLL_X, NULL), + m_pTaskPane->GetSize().GetHeight() + ); } } else { m_pTaskPane->SetSize(sz.GetWidth(), m_pTaskPane->GetSize().GetHeight());