Skip to content

Commit

Permalink
Simplify.
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnlaan committed May 10, 2024
1 parent 4eebe9b commit 6bc0f67
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions Examples/CodeClasses.iss
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,7 @@ begin
StaticText2.Caption := 'TNewStaticText with more text and an adjusted label height so it''s multi-line.';
StaticText2.Width := 2 * StaticText.Width;
StaticText2.Parent := Page.Surface;
WizardForm.AdjustLabelHeight(StaticText2);
StaticText2.AdjustHeight;
LinkLabel := TNewLinkLabel.Create(Page);
LinkLabel.AutoSize := False;
Expand All @@ -256,8 +255,7 @@ begin
LinkLabel.Width := StaticText2.Width;
LinkLabel.OnLinkClick := @LinkLabelOnLinkClick;
LinkLabel.Parent := Page.Surface;
WizardForm.AdjustLinkLabelHeight(LinkLabel);
LinkLabel.AdjustHeight;
{ TNewProgressBar }
Expand Down
4 changes: 2 additions & 2 deletions iscrypt.iss
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ begin
WordWrap := True;
Caption := ALabel1Caption;
Parent := Page.Surface;
AdjustHeight;
end;
WizardForm.AdjustLabelHeight(Label1);
Label2 := TNewStaticText.Create(Page);
with Label2 do begin
Expand All @@ -78,8 +78,8 @@ begin
WordWrap := True;
Caption := ALabel2Caption;
Parent := Page.Surface;
AdjustHeight;
end;
WizardForm.AdjustLabelHeight(Label2);
CreateCustomOption(Page, ACheckCaption, CheckBox, Label2);
Expand Down

0 comments on commit 6bc0f67

Please sign in to comment.