X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ed72fbf723697143940bc927b1a6d6fee35beb3f..bc797f4cc8ffe36277ba8b7dd4b57e63a96bfcb5:/src/common/toplvcmn.cpp

diff --git a/src/common/toplvcmn.cpp b/src/common/toplvcmn.cpp
index 0e21ec247b..a67959b9f0 100644
--- a/src/common/toplvcmn.cpp
+++ b/src/common/toplvcmn.cpp
@@ -162,9 +162,13 @@ void wxTopLevelWindowBase::OnSize(wxSizeEvent& WXUNUSED(event))
             static const int ofs = 0;
 #endif
 
-            child->SetSize(ofs, ofs, clientW - 2*ofs, clientH - 2*ofs);
 #ifdef __WXPM__
-            UpdateInternalSize(child, clientH);
+            // OS/2 PM has to do a LOT of stuff to get things
+            // positioned right, especially if the child is a
+            // scrolled window.
+            UpdateInternalSize(child, clientW, clientH);
+#else
+            child->SetSize(ofs, ofs, clientW - 2*ofs, clientH - 2*ofs);
 #endif
         }
     }