Fix misaligned overlays

- Issue MatterHackers/MCCentral#2067
Overlays improperly positioned
This commit is contained in:
John Lewin 2017-10-15 00:40:03 -07:00
parent 1e8190eaa6
commit 3d38ad0e5a
3 changed files with 4 additions and 3 deletions

View file

@ -69,7 +69,7 @@ namespace MatterHackers.MatterControl
public AltGroupBox(GuiWidget groupBoxLabel)
: base(FlowDirection.TopToBottom)
{
this.Padding = new BorderDouble(5);
this.Padding = new BorderDouble(5, 5, 5, 0);
this.Margin = new BorderDouble(0);
this.groupBoxLabel = groupBoxLabel;
this.HAnchor = Agg.UI.HAnchor.Stretch;

View file

@ -69,7 +69,7 @@ namespace MatterHackers.MatterControl.CustomWidgets
break;
case EnableLevel.ConfigOnly:
disableOverlay.Margin = new BorderDouble(0, 0, 0, 26);
disableOverlay.Margin = new BorderDouble(0, 0, 0, ApplicationController.Instance.Theme.ButtonHeight);
disableOverlay.Visible = true;
break;