Don't re-create wxChoice with proportion of 1

When re-creating a wxChoice in the widgets sample it expands vertically.
Same fix as dd740d8 (ticket #9594) but for the Choice page instead of
Combobox page.
This commit is contained in:
Dimitri Schoolwerth
2015-05-18 18:42:40 +04:00
parent 1430123e58
commit 928e0fb577

View File

@@ -314,7 +314,7 @@ void ChoiceWidgetsPage::CreateChoice()
flags); flags);
m_choice->Set(items); m_choice->Set(items);
m_sizerChoice->Add(m_choice, 1, wxGROW | wxALL, 5); m_sizerChoice->Add(m_choice, 0, wxGROW | wxALL, 5);
m_sizerChoice->Layout(); m_sizerChoice->Layout();
} }