summaryrefslogtreecommitdiff
path: root/alf/alflabel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'alf/alflabel.cpp')
-rw-r--r--alf/alflabel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/alf/alflabel.cpp b/alf/alflabel.cpp
index a0dc138..108c8d5 100644
--- a/alf/alflabel.cpp
+++ b/alf/alflabel.cpp
@@ -9,7 +9,7 @@ int ALF__LabelTopPadding(HWND hwnd, ALFAPP app)
// see also: alfedit.cpp
return app->compatFn->GetSystemMetricsForDpi(
SM_CYEDGE, ALF_CentipointsToPixels(GetParent(hwnd), 7200))
- + 1 /* internal padding in edit control */
+ + ((LOBYTE(LOWORD(GetVersion())) < 4) ? 2 : 1) /* internal padding in edit control */
+ 1 /* external padding around edit control */;
}