Fix sizing issues with TextButton

- Issue MatterHackers/MCCentral#4425
Unexpected left alignment of Close button
This commit is contained in:
John Lewin 2018-10-30 16:27:01 -07:00
parent b3592519e3
commit 433e563775
2 changed files with 3 additions and 3 deletions

View file

@ -47,13 +47,12 @@ namespace MatterHackers.MatterControl
private ThemeColorPanel themeColorPanel;
public ApplicationSettingsPage()
: base("Close".Localize())
{
this.AlwaysOnTopOfMain = true;
this.WindowTitle = this.HeaderText = "MatterControl " + "Settings".Localize();
this.WindowSize = new Vector2(700 * GuiWidget.DeviceScale, 600 * GuiWidget.DeviceScale);
this.SetCancelButtonText("Close".Localize());
contentRow.Padding = theme.DefaultContainerPadding;
contentRow.Padding = 0;
contentRow.BackgroundColor = Color.Transparent;