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:
parent
dfba063d53
commit
900c6d5d75
@ -167,7 +167,7 @@ void wxStaticBox::GetBordersForSizer(int *borderTop, int *borderOther) const
|
||||
wxStaticBoxBase::GetBordersForSizer(borderTop, borderOther);
|
||||
|
||||
// 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)
|
||||
|
Loading…
Reference in New Issue
Block a user