fixing bad close button placement

issue: MatterHackers/MCCentral#6129
presets editor has close button under edit icon
This commit is contained in:
LarsBrubaker 2020-10-28 19:54:21 -07:00
parent 7af4ff5571
commit 14f8f45e56

View file

@ -55,7 +55,7 @@ namespace MatterHackers.MatterControl.CustomWidgets
bool boldFont = false,
bool editable = true,
string emptyText = null)
: base(theme.TabbarPadding, theme.CreateSmallResetButton())
: base(theme.TabbarPadding)
{
this.Padding = theme.ToolbarPadding;
this.HAnchor = HAnchor.Stretch;
@ -171,7 +171,7 @@ namespace MatterHackers.MatterControl.CustomWidgets
public void SetVisibility(bool showEditPanel)
{
editButton.Visible = !showEditPanel;
titleText.Visible = !showEditPanel;
titleText.Visible = !showEditPanel;
saveButton.Visible = showEditPanel;
textEditWithInlineCancel.Visible = showEditPanel;