X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0de868d9dda005db4f84117f0704dbc5702ddb71..1b12ab1641ca114b6ca8f7ddb628a9915b4f24f0:/samples/calendar/calendar.cpp diff --git a/samples/calendar/calendar.cpp b/samples/calendar/calendar.cpp index fd5162b094..d029c165fd 100644 --- a/samples/calendar/calendar.cpp +++ b/samples/calendar/calendar.cpp @@ -315,15 +315,15 @@ MyPanel::MyPanel(wxFrame *frame) wxLayoutConstraints *c = new wxLayoutConstraints; c->left.SameAs(this, wxLeft, 10); - c->centreY.SameAs(m_calendar, wxCentreY); + c->centreY.SameAs(this, wxCentreY); c->height.AsIs(); c->width.AsIs(); m_date->SetConstraints(c); c = new wxLayoutConstraints; - c->left.SameAs(m_date, wxRight, 10); - c->top.SameAs(this, wxTop, 10); + c->left.SameAs(m_date, wxRight, 20); + c->centreY.SameAs(this, wxCentreY); c->height.AsIs(); c->width.AsIs();