From 37d4a2811bbd4d443acaae9ced90703172ad63a4 Mon Sep 17 00:00:00 2001 From: Gregory Diaz Date: Mon, 28 Dec 2015 17:46:15 -0800 Subject: [PATCH] Changed widget layout for the Transparent checkbox so that it is aligned with the other checkboxes on that control --- PartPreviewWindow/ViewGcodeBasic.cs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/PartPreviewWindow/ViewGcodeBasic.cs b/PartPreviewWindow/ViewGcodeBasic.cs index 3265d1a7a..80273b290 100644 --- a/PartPreviewWindow/ViewGcodeBasic.cs +++ b/PartPreviewWindow/ViewGcodeBasic.cs @@ -624,16 +624,15 @@ namespace MatterHackers.MatterControl.PartPreviewWindow { gcodeViewWidget.SimulateExtrusion = simulateExtrusion.Checked; }; + layerInfoContainer.AddChild(simulateExtrusion); } // put in a render extrusion transparent checkbox { - CheckBox transparentExtrusion = new CheckBox(LocalizedString.Get("Transparent"), textColor: ActiveTheme.Instance.PrimaryTextColor) - { - Checked = gcodeViewWidget.TransparentExtrusion, - Margin = new BorderDouble(5, 0, 0, 0) * TextWidget.GlobalPointSizeScaleRatio, - HAnchor = HAnchor.ParentLeft, + CheckBox transparentExtrusion = new CheckBox(LocalizedString.Get("Transparent"), textColor: ActiveTheme.Instance.PrimaryTextColor) + { + Checked = gcodeViewWidget.TransparentExtrusion, }; transparentExtrusion.CheckedStateChanged += (sender, e) =>