From 75f33b3499535e775f0bfaf1c3a7c2a0f1fc2b18 Mon Sep 17 00:00:00 2001 From: John Lewin Date: Sun, 24 Feb 2019 10:02:53 -0800 Subject: [PATCH] Simplify --- MatterControlLib/PartPreviewWindow/ViewControls3D.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/MatterControlLib/PartPreviewWindow/ViewControls3D.cs b/MatterControlLib/PartPreviewWindow/ViewControls3D.cs index 0536fbd14..94b7ad67c 100644 --- a/MatterControlLib/PartPreviewWindow/ViewControls3D.cs +++ b/MatterControlLib/PartPreviewWindow/ViewControls3D.cs @@ -643,12 +643,11 @@ namespace MatterHackers.MatterControl.PartPreviewWindow OpenColor = openColor, DrawArrow = true, Margin = theme.ButtonSpacing, - PopupBorderColor = Color.Transparent + PopupBorderColor = Color.Transparent, + PopupHAnchor = HAnchor.Fit, + PopupVAnchor = VAnchor.Fit }; - libraryPopup.PopupHAnchor = HAnchor.Fit; - libraryPopup.PopupVAnchor = VAnchor.Fit; - return libraryPopup; }