fixes to the sizers behaviour necessary to make the log dialog work again

(thanks to Dimitri) and a few updates to the docs after the recent changes


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15828 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2002-06-13 20:21:20 +00:00
parent aad65f130d
commit e5251d4f78
5 changed files with 18 additions and 14 deletions

View File

@@ -400,7 +400,7 @@ void wxSizer::DeleteWindows()
}
}
void wxSizer::Fit( wxWindow *window )
wxSize wxSizer::Fit( wxWindow *window )
{
wxSize size;
if (window->IsTopLevel())
@@ -408,8 +408,9 @@ void wxSizer::Fit( wxWindow *window )
else
size = GetMinWindowSize( window );
//window->SetClientSize( size );
window->SetSize( size );
return size;
}
void wxSizer::FitInside( wxWindow *window )
@@ -434,8 +435,8 @@ void wxSizer::SetSizeHints( wxWindow *window )
// Preserve the window's max size hints, but set the
// lower bound according to the sizer calculations.
Fit( window );
wxSize size( window->GetSize() );
wxSize size = Fit( window );
window->SetSizeHints( size.x,
size.y,
window->GetMaxWidth(),