From 4f364bdd2f6d4861b9e0a46a0d1f75acc3a269eb Mon Sep 17 00:00:00 2001 From: Gregory Diaz Date: Sat, 11 Apr 2015 15:49:20 -0700 Subject: [PATCH] More Progress better implementation --- PartPreviewWindow/ColorGradientWidget.cs | 4 ++-- PartPreviewWindow/ViewGcodeBasic.cs | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/PartPreviewWindow/ColorGradientWidget.cs b/PartPreviewWindow/ColorGradientWidget.cs index f72330f82..a5f4be448 100644 --- a/PartPreviewWindow/ColorGradientWidget.cs +++ b/PartPreviewWindow/ColorGradientWidget.cs @@ -22,7 +22,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow : base(FlowDirection.TopToBottom) { - this.VAnchor = VAnchor.FitToChildren; + VAnchor = VAnchor.FitToChildren; BackgroundColor = new RGBA_Bytes(0, 0, 0, 120); @@ -42,7 +42,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow this.AddChild(orange); this.AddChild(lightBlue); - Margin = new BorderDouble(75); + Margin = new BorderDouble(top:75, left: 5, right: 530); } diff --git a/PartPreviewWindow/ViewGcodeBasic.cs b/PartPreviewWindow/ViewGcodeBasic.cs index 2c1e0ed4b..db85295f5 100644 --- a/PartPreviewWindow/ViewGcodeBasic.cs +++ b/PartPreviewWindow/ViewGcodeBasic.cs @@ -259,8 +259,9 @@ namespace MatterHackers.MatterControl.PartPreviewWindow ColorGradientWidget gradient = new ColorGradientWidget(); gradient.VAnchor = Agg.UI.VAnchor.ParentTop; + gradient.HAnchor = Agg.UI.HAnchor.ParentLeftRight; AddChild(gradient); - + viewControls3D = new ViewControls3D(meshViewerWidget); viewControls3D.PartSelectVisible = false; AddChild(viewControls3D);