mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-19 04:19:09 +02:00
LCL: TSpeedButton: fixed margin
git-svn-id: trunk@29123 -
This commit is contained in:
parent
c7d2d778a0
commit
9e4f448c8f
@ -587,6 +587,7 @@ begin
|
||||
S:= Spacing
|
||||
else
|
||||
S:= 0;
|
||||
M:=Margin;
|
||||
if not Draw then
|
||||
begin
|
||||
if M<0 then M:=2;
|
||||
@ -594,7 +595,7 @@ begin
|
||||
end;
|
||||
|
||||
// Calculate caption and glyph layout
|
||||
if Margin = -1 then begin
|
||||
if M = -1 then begin
|
||||
// auto compute margin to center content
|
||||
if S = -1 then begin
|
||||
// use the same value for Spacing and Margin
|
||||
@ -616,7 +617,6 @@ begin
|
||||
end;
|
||||
end else begin
|
||||
// fixed Margin
|
||||
M:= Margin;
|
||||
if S = -1 then begin
|
||||
// use the rest for Spacing between Glyph and Caption
|
||||
TotalSize.cx:= ClientSize.cx - (Margin + GlyphWidth);
|
||||
|
Loading…
Reference in New Issue
Block a user