mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-30 10:50:53 +02:00
win32: menus: fix menu height calculation. Issue #31875
git-svn-id: trunk@55019 -
This commit is contained in:
parent
c5bb05f7c7
commit
57a8731482
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user