X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1b7735e10f1f9dc889c9817a8066ef34e399328f..bbee1b4abc13379569607df8f6985ec68dc12231:/src/common/toplvcmn.cpp diff --git a/src/common/toplvcmn.cpp b/src/common/toplvcmn.cpp index 6c9f3d89f9..865d29f444 100644 --- a/src/common/toplvcmn.cpp +++ b/src/common/toplvcmn.cpp @@ -113,14 +113,12 @@ void wxTopLevelWindowBase::DoClientToScreen(int *x, int *y) const // whole client area void wxTopLevelWindowBase::OnSize(wxSizeEvent& WXUNUSED(event)) { - // if we're using constraints - do use them -#if wxUSE_CONSTRAINTS + // if we're using constraints or sizers - do use them if ( GetAutoLayout() ) { Layout(); } else -#endif // wxUSE_CONSTRAINTS { // do we have _exactly_ one child? wxWindow *child = (wxWindow *)NULL;