X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/54d6106853c412a82c440a7fc077f98a3a132359..c9ccc09c64f4c29d4667796bef7b507d9e8d25ed:/include/wx/sizer.h 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)); }