]> git.saurik.com Git - wxWidgets.git/commitdiff
Vertically centres a left-aligned wxChoiceBook controller
authorJulian Smart <julian@anthemion.co.uk>
Wed, 7 Nov 2007 12:49:05 +0000 (12:49 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Wed, 7 Nov 2007 12:49:05 +0000 (12:49 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49717 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/choicbkg.cpp

index 50ab914d84a6eb53659060e9be3e530bf84010e1..f8ef2c4bf2384391045a14f5bc9d9177f9d1c9fd 100644 (file)
@@ -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;
 }