]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/sizer.h
Add RunScript and implement on all backends. Document and add a very simple unit...
[wxWidgets.git] / include / wx / sizer.h
index 6d414fd09d20308b3cc8a22ee7d0a3e1d33fb5b0..39044e31e880958f4f78e19749928fd7629393b9 100644 (file)
@@ -665,6 +665,10 @@ public:
         m_position = pos;
         m_size = size;
         Layout();
+
+        // This call is required for wxWrapSizer to be able to calculate its
+        // minimal size correctly.
+        InformFirstDirection(wxHORIZONTAL, size.x, size.y);
     }
     void SetDimension(int x, int y, int width, int height)
         { SetDimension(wxPoint(x, y), wxSize(width, height)); }