Fix misaligned overlays
- Issue MatterHackers/MCCentral#2067 Overlays improperly positioned
This commit is contained in:
parent
1e8190eaa6
commit
3d38ad0e5a
3 changed files with 4 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue