From 38fff7ad2face19c38d6250ecb586ea56a54cf90 Mon Sep 17 00:00:00 2001 From: GeKorm Date: Mon, 6 Nov 2017 22:25:23 +0000 Subject: [PATCH] Fix overlapping label --- dart_x64_dev_setup.iss | 9 ++++++++- dart_x64_stable_setup.iss | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/dart_x64_dev_setup.iss b/dart_x64_dev_setup.iss index be71de2..67b392b 100644 --- a/dart_x64_dev_setup.iss +++ b/dart_x64_dev_setup.iss @@ -218,7 +218,14 @@ begin LatestLabel := TNewStaticText.Create(WizardForm); LatestLabel.Parent := Page.Surface; LatestLabel.Caption := FmtMessage(CustomMessage('DartLatestVersion'), [CurrentVersion]); - WizardForm.ReadyLabel.Top := LatestLabel.Top + WizardForm.ReadyLabel.Height + 16; + if Wizardform.ReadyMemo.Lines.Count > 0 then + begin + WizardForm.ReadyLabel.Caption := ''; + end + else + begin + WizardForm.ReadyLabel.Top := LatestLabel.Top + WizardForm.ReadyLabel.Height + 16; + end end end; // If the user just reached the Installing page, then... diff --git a/dart_x64_stable_setup.iss b/dart_x64_stable_setup.iss index 9cb4e59..09f8799 100644 --- a/dart_x64_stable_setup.iss +++ b/dart_x64_stable_setup.iss @@ -219,7 +219,14 @@ begin LatestLabel := TNewStaticText.Create(WizardForm); LatestLabel.Parent := Page.Surface; LatestLabel.Caption := FmtMessage(CustomMessage('DartLatestVersion'), [CurrentVersion]); - WizardForm.ReadyLabel.Top := LatestLabel.Top + WizardForm.ReadyLabel.Height + 16; + if Wizardform.ReadyMemo.Lines.Count > 0 then + begin + WizardForm.ReadyLabel.Caption := ''; + end + else + begin + WizardForm.ReadyLabel.Top := LatestLabel.Top + WizardForm.ReadyLabel.Height + 16; + end end end; // If the user just reached the Installing page, then...