]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/statbox.cpp
* Fixes and new features in wxObject*Stream
[wxWidgets.git] / src / msw / statbox.cpp
index ae58e8f769095305d5a681f377db6db835e4866d..b99a5a9bee1d5488df0b2208097d858f2bcdf151 100644 (file)
@@ -117,6 +117,8 @@ void wxStaticBox::SetSize(int x, int y, int width, int height, int sizeFlags)
   if (y == -1 || (sizeFlags & wxSIZE_ALLOW_MINUS_ONE))
     y1 = currentY;
 
+  AdjustForParentClientOrigin(x1, y1, sizeFlags);
+
   // If we're prepared to use the existing size, then...
   if (width == -1 && height == -1 && ((sizeFlags & wxSIZE_AUTO) != wxSIZE_AUTO))
   {