X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3d2085a422cfd1db625dbc53ca542936a3264ed8..74dea0decfee896aa5197df82f3ffda65afb3aec:/src/common/sizer.cpp?ds=inline diff --git a/src/common/sizer.cpp b/src/common/sizer.cpp index 9bce1d0793..a358717876 100644 --- a/src/common/sizer.cpp +++ b/src/common/sizer.cpp @@ -907,18 +907,12 @@ void wxSizer::SetSizeHints( wxWindow *window ) window->GetMaxHeight() ); } +#if WXWIN_COMPATIBILITY_2_8 void wxSizer::SetVirtualSizeHints( wxWindow *window ) { - // Preserve the window's max size hints, but set the - // lower bound according to the sizer calculations. - FitInside( window ); - wxSize size( window->GetVirtualSize() ); - window->SetVirtualSizeHints( size.x, - size.y, - window->GetMaxWidth(), - window->GetMaxHeight() ); } +#endif // WXWIN_COMPATIBILITY_2_8 wxSize wxSizer::GetMaxWindowSize( wxWindow *window ) const {