mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 04:19:12 +02:00
LCL: fix label layout when aligned
git-svn-id: trunk@13061 -
This commit is contained in:
parent
9fa8019b30
commit
2110590f03
@ -201,7 +201,7 @@ begin
|
||||
TextTop := 0;
|
||||
end else
|
||||
begin
|
||||
GetPreferredSize(lTextWidth, lTextHeight);
|
||||
GetPreferredSize(lTextWidth, lTextHeight, True);
|
||||
case Layout of
|
||||
tlCenter: TextTop := (Height - lTextHeight) div 2;
|
||||
tlBottom: TextTop := Height - lTextHeight;
|
||||
|
Loading…
Reference in New Issue
Block a user