mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-23 05:19:27 +02:00
anchordocking: add space for close button only on gtk2 and carbon, bug #24807
git-svn-id: trunk@42427 -
This commit is contained in:
parent
4daf47a75d
commit
b7ebebacca
@ -5193,8 +5193,12 @@ procedure TAnchorDockCloseButton.CalculatePreferredSize(var PreferredWidth,
|
|||||||
begin
|
begin
|
||||||
with ThemeServices.GetDetailSize(ThemeServices.GetElementDetails(twSmallCloseButtonNormal)) do
|
with ThemeServices.GetDetailSize(ThemeServices.GetElementDetails(twSmallCloseButtonNormal)) do
|
||||||
begin
|
begin
|
||||||
PreferredWidth:=cx+2;
|
PreferredWidth:=cx;
|
||||||
PreferredHeight:=cy+2;
|
PreferredHeight:=cy;
|
||||||
|
{$IF defined(LCLGtk2) or defined(Carbon)}
|
||||||
|
inc(PreferredWidth,2);
|
||||||
|
inc(PreferredHeight,2);
|
||||||
|
{$ENDIF}
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user