Don't call Layout
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32822 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
364a2be07a
commit
f8a10a3d2b
@ -124,9 +124,7 @@ LifeSamplesDialog::LifeSamplesDialog(wxWindow *parent)
|
||||
// activate
|
||||
SetSizer(sizer3);
|
||||
|
||||
#if defined(__POCKETPC__) || defined(__SMARTPHONE__)
|
||||
Layout();
|
||||
#else
|
||||
#if !defined(__POCKETPC__) && !defined(__SMARTPHONE__)
|
||||
sizer3->SetSizeHints(this);
|
||||
sizer3->Fit(this);
|
||||
Centre(wxBOTH | wxCENTRE_ON_SCREEN);
|
||||
@ -195,9 +193,7 @@ XLife is (c) 1989 by Jon Bennett et al.")),
|
||||
// activate
|
||||
SetSizer(sizer);
|
||||
|
||||
#ifdef __WXWINCE__
|
||||
Layout();
|
||||
#else
|
||||
#ifndef __WXWINCE__
|
||||
sizer->SetSizeHints(this);
|
||||
sizer->Fit(this);
|
||||
Centre(wxBOTH | wxCENTRE_ON_SCREEN);
|
||||
|
Loading…
Reference in New Issue
Block a user