Put pop-up in the right place if on an internal system window

issue: MatterHackers/MCCentral#5996
problem with placement of right click menu
This commit is contained in:
Lars Brubaker 2020-08-12 17:36:59 -07:00
parent a21360f3a7
commit 5eb4e7c670

View file

@ -506,7 +506,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
public static void ShowMenu(this PopupMenu popupMenu, GuiWidget anchorWidget, Vector2 menuPosition)
{
var systemWindow = anchorWidget.Parents<SystemWindow>().FirstOrDefault();
var systemWindow = anchorWidget.Parents<SystemWindow>().LastOrDefault();
systemWindow.ToolTipManager.Clear();
systemWindow.ShowPopup(
new MatePoint(anchorWidget)