Fix invalid use of wxSizer flags in samples and utils.
Remove alignment flags that result in asserts because of being used in combinations that don't make sense. Also use wxSizerFlags in the lines that were changed.
This commit is contained in:
@@ -322,7 +322,7 @@ void BitmapComboBoxWidgetsPage::CreateContent()
|
||||
wxButton *btn = new wxButton(this, BitmapComboBoxPage_Reset, wxT("&Reset"));
|
||||
sizerStyle->Add(btn, 0, wxALIGN_CENTRE_HORIZONTAL | wxALL, 3);
|
||||
|
||||
sizerLeft->Add(sizerStyle, 0, wxGROW | wxALIGN_CENTRE_HORIZONTAL);
|
||||
sizerLeft->Add(sizerStyle, wxSizerFlags().Expand());
|
||||
sizerLeft->Add(m_radioKind, 0, wxGROW | wxALL, 5);
|
||||
|
||||
// left pane - other options box
|
||||
@@ -336,7 +336,7 @@ void BitmapComboBoxWidgetsPage::CreateContent()
|
||||
m_textChangeHeight->SetSize(20, wxDefaultCoord);
|
||||
sizerOptions->Add(sizerRow, 0, wxALL | wxFIXED_MINSIZE /*| wxGROW*/, 5);
|
||||
|
||||
sizerLeft->Add(sizerOptions, 0, wxGROW | wxALIGN_CENTRE_HORIZONTAL | wxTOP, 2);
|
||||
sizerLeft->Add( sizerOptions, wxSizerFlags().Expand().Border(wxTOP, 2));
|
||||
|
||||
// middle pane
|
||||
wxStaticBox *box2 = new wxStaticBox(this, wxID_ANY,
|
||||
|
Reference in New Issue
Block a user