Turned settings name wrapping back on

This commit is contained in:
Lars Brubaker 2017-11-18 10:14:25 -08:00
parent d4c6e58316
commit 7802c423d9
2 changed files with 3 additions and 5 deletions

View file

@ -730,14 +730,13 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
}
}
public static TextWidget CreateSettingsLabel(string label, string helpText)
public static GuiWidget CreateSettingsLabel(string label, string helpText)
{
return new TextWidget(label, pointSize: 10, textColor: ActiveTheme.Instance.PrimaryTextColor)
return new WrappedTextWidget(label, pointSize: 10, textColor: ActiveTheme.Instance.PrimaryTextColor)
{
VAnchor = VAnchor.Center | VAnchor.Fit,
EllipsisIfClipped = true,
AutoExpandBoundsToText = false,
ToolTipText = helpText,
Margin = new BorderDouble(0, 5),
};
}

View file

@ -83,7 +83,6 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
var labelWidget = SliceSettingsWidget.CreateSettingsLabel($"Nozzle {i + 1}", "");
labelWidget.Name = $"Nozzle {i}";
labelWidget.AutoExpandBoundsToText = true;
labelWidget.Margin = new BorderDouble(right: 60, left: 20);
row.AddChild(labelWidget);