Remove unwanted flag from sizer in the help sample
This resulted in an assert failure as wxALIGN_CENTER_VERTICAL has no chance of working for an element of a vertical wxBoxSizer.
This commit is contained in:
parent
a88cdfb49b
commit
ca3e63656c
@ -706,8 +706,8 @@ MyModalDialog::MyModalDialog(wxWindow *parent)
|
||||
wxDefaultPosition, wxSize(300, 100),
|
||||
wxTE_MULTILINE);
|
||||
text->SetHelpText(_("Type text here if you have got nothing more interesting to do"));
|
||||
sizerTop->Add(text, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL|wxALL, 5 );
|
||||
sizerTop->Add(sizerRow, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5 );
|
||||
sizerTop->Add(text, 0, wxEXPAND|wxALL, 5 );
|
||||
sizerTop->Add(sizerRow, 0, wxALIGN_RIGHT|wxALL, 5 );
|
||||
|
||||
SetSizerAndFit(sizerTop);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user