win32: menus: fix menu height calculation. Issue #31875

git-svn-id: trunk@55019 -
This commit is contained in:
ondrej 2017-05-20 05:21:35 +00:00
parent c5bb05f7c7
commit 57a8731482

View File

@ -474,7 +474,7 @@ begin
end
else
begin
Result.cy := Max(Metrics.TextSize.cy, Metrics.CheckSize.cy + Metrics.CheckMargins.cyTopHeight + Metrics.CheckMargins.cyBottomHeight);
Result.cy := Max(Metrics.TextSize.cy + 1, Metrics.CheckSize.cy + Metrics.CheckMargins.cyTopHeight + Metrics.CheckMargins.cyBottomHeight);
if AMenuItem.HasIcon then
begin
IconSize := AMenuItem.GetIconSize;