Ensure control is invisible at startup

- Issue MatterHackers/MCCentral#2200
Phantom text drawn for first few seconds
This commit is contained in:
John Lewin 2017-12-29 13:34:43 -08:00
parent 50610511e7
commit 5801bf14c5

View file

@ -41,9 +41,12 @@ namespace MatterHackers.MatterControl.CustomWidgets
public InlineEditControl(string defaultSizeString = "-0000.00", Agg.Font.Justification justification = Agg.Font.Justification.Left)
{
base.Visible = false;
double pointSize = 12;
numberDisplay = new TextWidget(defaultSizeString, 0, 0, pointSize, justification: justification)
{
Visible = false,
VAnchor = VAnchor.Bottom,
HAnchor = HAnchor.Left,
Text = "0",