From: Julian Smart Date: Wed, 7 Nov 2007 12:49:05 +0000 (+0000) Subject: Vertically centres a left-aligned wxChoiceBook controller X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ddfd64a99c22c80cde68c699567d6aa0d9cd8745 Vertically centres a left-aligned wxChoiceBook controller git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49717 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/choicbkg.cpp b/src/generic/choicbkg.cpp index 50ab914d84..f8ef2c4bf2 100644 --- a/src/generic/choicbkg.cpp +++ b/src/generic/choicbkg.cpp @@ -109,7 +109,7 @@ wxChoicebook::Create(wxWindow *parent, m_controlSizer = new wxBoxSizer(IsVertical() ? wxHORIZONTAL : wxVERTICAL); m_controlSizer->Add(m_bookctrl, 1, (IsVertical() ? wxALIGN_CENTRE_VERTICAL : wxALIGN_CENTRE) |wxGROW, 0); - mainSizer->Add(m_controlSizer, 0, wxGROW|wxALL, m_controlMargin); + mainSizer->Add(m_controlSizer, 0, (IsVertical() ? wxGROW : wxALIGN_CENTRE_VERTICAL)|wxALL, m_controlMargin); SetSizer(mainSizer); return true; }