PackageTabs: Align the tab captions on the left if they are located on the side

This commit is contained in:
n7800 2025-02-25 02:56:08 +05:00 committed by Maxim Ganetsky
parent 6161cd2261
commit 9764886e60

View File

@ -500,6 +500,13 @@ constructor TPackageTabButton.Create(aOwner: TComponent);
begin
inherited Create(aOwner);
if IDEEditorOptions.TabPosition in [tpLeft, tpRight] then
begin
Alignment := taLeftJustify;
Margin := 2; // need for left text align
BorderSpacing.Left := 8;
end;
Transparent := True;
Flat := True;
AutoSize := True;
@ -922,7 +929,7 @@ begin
if FPanel is TPackageTabScrollBox then
begin
xLbl.Alignment := taLeftJustify;
xLbl.BorderSpacing.Left := 10;
xLbl.BorderSpacing.Left := 2;
end
else if FPanel is TPackageTabFlowPanel then
begin