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:
parent
a21360f3a7
commit
5eb4e7c670
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue