git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35923
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
- added wxDialog::SetEscapeId()
- wxItemContainerImmutable::FindString unified (affects wxRadioBox, wxListBox,
wxComboBox and wxChoice)
+- wxWindow::Fit() now works correctly for frames and dialogs too
wxMSW:
// fits the window around the children
void wxWindowBase::Fit()
{
- if ( GetChildren().GetCount() > 0 )
+ if ( !GetChildren().empty() )
{
- SetSize(GetBestSize());
+ SetClientSize(GetBestSize());
}
//else: do nothing if we have no children
}