Slightly decrease the top margin of wxMSW wxStaticBox

Use the same offset we already use in the drawing code, this is a bit
less arbitrary than what we did before and looks slightly better too.
This commit is contained in:
Vadim Zeitlin 2017-12-20 22:54:44 +01:00
parent dfba063d53
commit 900c6d5d75

View File

@ -167,7 +167,7 @@ void wxStaticBox::GetBordersForSizer(int *borderTop, int *borderOther) const
wxStaticBoxBase::GetBordersForSizer(borderTop, borderOther); wxStaticBoxBase::GetBordersForSizer(borderTop, borderOther);
// need extra space, don't know how much but this seems to be enough // need extra space, don't know how much but this seems to be enough
*borderTop += GetCharHeight()/3; *borderTop += FromDIP(LABEL_VERT_BORDER);
} }
WXLRESULT wxStaticBox::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam) WXLRESULT wxStaticBox::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam)