X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f427e0d63499522aeeb8360e6a5c748de0a87d92..c43430bbacbf26414693fcf47fe54a8090c6bfcb:/src/common/toplvcmn.cpp?ds=sidebyside diff --git a/src/common/toplvcmn.cpp b/src/common/toplvcmn.cpp index 9035677ca0..0e21ec247b 100644 --- a/src/common/toplvcmn.cpp +++ b/src/common/toplvcmn.cpp @@ -58,6 +58,11 @@ wxTopLevelWindowBase::wxTopLevelWindowBase() { } +wxTopLevelWindowBase::~wxTopLevelWindowBase() +{ + // this destructor is required for Darwin +} + bool wxTopLevelWindowBase::Destroy() { // delayed destruction: the frame will be deleted during the next idle @@ -132,6 +137,9 @@ void wxTopLevelWindowBase::OnSize(wxSizeEvent& WXUNUSED(event)) { if ( child ) { +#ifdef __WXPM__ + AlterChildPos(); +#endif return; // it's our second subwindow - nothing to do } @@ -155,6 +163,9 @@ void wxTopLevelWindowBase::OnSize(wxSizeEvent& WXUNUSED(event)) #endif child->SetSize(ofs, ofs, clientW - 2*ofs, clientH - 2*ofs); +#ifdef __WXPM__ + UpdateInternalSize(child, clientH); +#endif } } } @@ -172,4 +183,3 @@ bool wxTopLevelWindowBase::SendIconizeEvent(bool iconized) return GetEventHandler()->ProcessEvent(event); } -