X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f35aa3daa3106af9c062ef4981fcbf91983ba193..f2c2fa4d62b34608e21b04f8010149945aebda70:/src/common/sizer.cpp diff --git a/src/common/sizer.cpp b/src/common/sizer.cpp index f1e0c5dd4e..32e2912914 100644 --- a/src/common/sizer.cpp +++ b/src/common/sizer.cpp @@ -469,7 +469,7 @@ void wxBoxSizer::RecalcSizes() wxSize wxBoxSizer::CalcMin() { if (m_children.GetCount() == 0) - return wxSize(2,2); + return wxSize(10,10); m_stretchable = 0; m_minWidth = 0; @@ -570,7 +570,7 @@ wxSize wxStaticBoxSizer::CalcMin() int other_border = 5; wxSize ret( wxBoxSizer::CalcMin() ); - ret.x += 2*top_border; + ret.x += 2*other_border; ret.y += other_border + top_border; return ret;