Changed the signature of WrappedTextWidget
This commit is contained in:
parent
3fbf40237a
commit
054d552289
7 changed files with 16 additions and 21 deletions
|
|
@ -48,7 +48,7 @@ public class LicenseAgreementPage : WizardPage
|
|||
scrollable.ScrollArea.HAnchor = HAnchor.ParentLeftRight;
|
||||
contentRow.AddChild(scrollable);
|
||||
|
||||
var textBox = new WrappedTextWidget("Loading End User License Agreement...", 200, textColor: ActiveTheme.Instance.PrimaryTextColor, doubleBufferText: false);
|
||||
var textBox = new WrappedTextWidget("Loading End User License Agreement...", textColor: ActiveTheme.Instance.PrimaryTextColor, doubleBufferText: false);
|
||||
scrollable.AddChild(textBox);
|
||||
|
||||
// wrap the text on a thread and show it when it is ready
|
||||
|
|
@ -58,7 +58,7 @@ public class LicenseAgreementPage : WizardPage
|
|||
WrappedTextWidget eulaTextBox = textBox;
|
||||
await Task.Run(() =>
|
||||
{
|
||||
eulaTextBox = new WrappedTextWidget(eulaText, 200, textColor: ActiveTheme.Instance.PrimaryTextColor, doubleBufferText: false)
|
||||
eulaTextBox = new WrappedTextWidget(eulaText, textColor: ActiveTheme.Instance.PrimaryTextColor, doubleBufferText: false)
|
||||
{
|
||||
DrawFromHintedCache = true,
|
||||
Name = "LicenseAgreementPage",
|
||||
|
|
@ -92,12 +92,6 @@ public class LicenseAgreementPage : WizardPage
|
|||
UiThread.RunOnIdle(MakeFrontWindow, 1);
|
||||
}
|
||||
|
||||
public override void OnLoad(EventArgs args)
|
||||
{
|
||||
MinimumSize = new MatterHackers.VectorMath.Vector2(Width, Height);
|
||||
base.OnLoad(args);
|
||||
}
|
||||
|
||||
private void MakeFrontWindow()
|
||||
{
|
||||
this.WizardWindow.BringToFront();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue