Made the end gcode go through the macro replacements.

This commit is contained in:
Lars Brubaker 2015-05-18 16:02:45 -07:00
parent 445b5728a2
commit 6d323cfde5
3 changed files with 7 additions and 2 deletions

View file

@ -62,6 +62,8 @@ namespace MatterHackers.MatterControl.UI
outerContainer.AddChild(topToBottomContainer);
CheckBox toggleBox = CreateCheckboxFromToggleSwitchView();
toggleBox.HAnchor = HAnchor.ParentLeftRight;
toggleBox.VAnchor = VAnchor.ParentBottomTop;
toggleBox.Margin = new BorderDouble(marginSize);
toggleBox.BackgroundColor = RGBA_Bytes.Red;
toggleBox.DebugShowBounds = true;
@ -75,7 +77,7 @@ namespace MatterHackers.MatterControl.UI
outerContainer.OnDraw(outerContainer.NewGraphics2D());
// For troubleshooting or visual validation
//OutputImages(outerContainer, outerContainer);
OutputImages(outerContainer, outerContainer);
var bounds = toggleBox.BoundsRelativeToParent;
Assert.IsTrue(bounds.Left == marginSize, "Left margin is incorrect");