Move toolbar spacing into base

- Issue MatterHackers/MCCentral#2522
Incorrect toolbar spacing after recent layout engine changes
This commit is contained in:
John Lewin 2017-12-28 12:51:47 -08:00
parent b569b070ef
commit ee773e50a3
3 changed files with 3 additions and 6 deletions

View file

@ -140,10 +140,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
SetSliderSizes();
};
printerActionsBar = new PrinterActionsBar(printer, this, theme)
{
Padding = new BorderDouble(0, theme.ToolbarPadding.Top, theme.ToolbarPadding.Right, theme.ToolbarPadding.Top)
};
printerActionsBar = new PrinterActionsBar(printer, this, theme);
printerActionsBar.OverflowMenu.BackgroundColor = theme.ResolveColor(theme.TabBodyBackground, theme.TabBodyBackground);
// Must come after we have an instance of View3DWidget an its undo buffer