Vertically centres a left-aligned wxChoiceBook controller

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49717 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2007-11-07 12:49:05 +00:00
parent 952a3bd46d
commit ddfd64a99c

View 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;
}