Hello,
Since Inno Setup 6.6.0 (and still present in 6.7.0), when you change Width of TLabel, which has WordWrap := True its Height is not updated (auto-resized) accordingly.
It used to work until 6.5.4.
If you first set Height and only then set the Caption, it works. So I have a workaround and it's not urgent for me.
Code to reproduce the problem:
procedure InitializeWizard();
var
Caption1, Caption2: TLabel;
begin
Caption1 := TLabel.Create(WizardForm);
Caption1.WordWrap := True;
Caption1.Width := WizardForm.ReadyPage.Width - Caption1.Left;
Caption1.Caption := 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.';
Caption1.Left := WizardForm.ReadyLabel.Left;
Caption1.Top := WizardForm.ReadyLabel.Top + WizardForm.ReadyLabel.Height;
Caption1.Parent := WizardForm.ReadyLabel.Parent;
Caption2 := TLabel.Create(WizardForm);
Caption2.Caption := 'bar';
Caption2.Left := Caption1.Left;
Caption2.Top := Caption1.Top + Caption1.Height;
Caption2.Parent := Caption1.Parent;
end;
It seems that the height corresponds to the original (default) width of the label.
Expected behaviour (result of the same code in 6.5.4):
Thanks.