mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-14 10:28:20 +02:00
Revert "lcl: label: align to right for autosize and taRightJustify (Delphi compatibility)"
This reverts commit 29996ddc03
.
This commit is contained in:
parent
f1b3d0ca11
commit
2a1ea2ca04
@ -300,18 +300,11 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TCustomLabel.UpdateSize;
|
procedure TCustomLabel.UpdateSize;
|
||||||
var
|
|
||||||
OldWidth, OldLeft: Integer;
|
|
||||||
begin
|
begin
|
||||||
OldWidth := Width;
|
|
||||||
OldLeft := Left;
|
|
||||||
InvalidatePreferredSize;
|
InvalidatePreferredSize;
|
||||||
if OptimalFill and (not AutoSize) then
|
if OptimalFill and (not AutoSize) then
|
||||||
AdjustFontForOptimalFill;
|
AdjustFontForOptimalFill;
|
||||||
AdjustSize;
|
AdjustSize;
|
||||||
if (AutoSize or OptimalFill) and (Alignment=taRightJustify)
|
|
||||||
and (OldWidth<>Width) and (OldLeft=Left) then
|
|
||||||
Left := Left-Width+OldWidth;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{-------------------------------------------------------------------------------
|
{-------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user