Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

Commit

Permalink
Allow for padding in the layout
Browse files Browse the repository at this point in the history
  • Loading branch information
DelphiWorlds committed Dec 18, 2019
1 parent b1594b2 commit 743dceb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ComponentHelpers/DW.ElasticLayout.pas
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ procedure TElasticLayoutHelper.ElasticRealign;
LRect: TRectF;
begin
LRect := GetChildrenOnlyRect;
LRect.Inflate(Padding.Left, Padding.Top, Padding.Right, Padding.Bottom);
FDisableAlign := True;
try
if not (Align in [TAlignLayout.Top, TAlignLayout.MostTop, TAlignLayout.Bottom, TAlignLayout.MostBottom]) then
Expand Down

0 comments on commit 743dceb

Please sign in to comment.