Fix incorrect wxSizerFlags::Border() call in the scroll sample.
Using 20 instead of a wxDirection resulted in an assert, fix the syntax. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72937 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -797,7 +797,7 @@ MySizerScrolledWindow::MySizerScrolledWindow(wxWindow *parent)
|
||||
m_button = new wxButton( this, wxID_RESIZE_FRAME, "Press me",
|
||||
wxDefaultPosition, SMALL_BUTTON );
|
||||
|
||||
sizer->Add(m_button, wxSizerFlags().Centre().Border(20));
|
||||
sizer->Add(m_button, wxSizerFlags().Centre().Border(wxALL, 20));
|
||||
sizer->Add(new wxStaticText(this, wxID_ANY, "This is just"),
|
||||
wxSizerFlags().Centre());
|
||||
sizer->Add(new wxStaticText(this, wxID_ANY, "some decoration"),
|
||||
|
Reference in New Issue
Block a user