From 900c6d5d75ae980c3ebf03c70bebcc319a44bfe2 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 20 Dec 2017 22:54:44 +0100 Subject: [PATCH] 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. --- src/msw/statbox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/statbox.cpp b/src/msw/statbox.cpp index 167de6c152..a178c4abcb 100644 --- a/src/msw/statbox.cpp +++ b/src/msw/statbox.cpp @@ -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)