X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8de6a0270d8e9cdcd3b0f430ef47970ec1101f78..e4c903b2ea42fe104ef50d0ea6028f14d8309dfa:/include/wx/sizer.h?ds=sidebyside diff --git a/include/wx/sizer.h b/include/wx/sizer.h index 6d414fd09d..39044e31e8 100644 --- a/include/wx/sizer.h +++ b/include/wx/sizer.h @@ -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)); }