]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/toplvcmn.cpp
ensure minimal mime support in wxHTML even without wxMimeTypesMananger
[wxWidgets.git] / src / common / toplvcmn.cpp
index 9035677ca09d807845c1dde98bddffbd0b0fa7b7..0e21ec247b808ce94154ce991a6b915c2be2853c 100644 (file)
@@ -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);
 }
-