Invoke ShowPopup via RunOnIdle

- Issue MatterHackers/MCCentral#2932
Overflow popup causes "mouse should not be locked" errors
This commit is contained in:
John Lewin 2018-03-14 13:23:19 -07:00
parent e128dd752a
commit 5ac2065308

View file

@ -82,7 +82,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
if ((mouseUpInBounds || buttonView?.MouseCaptured == true)
&& !menuVisibileAtMouseDown)
{
ShowPopup();
UiThread.RunOnIdle(this.ShowPopup);
}
base.OnMouseUp(mouseEvent);
@ -133,6 +133,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
this.PopupWindowClosed?.Invoke(this, null);
};
popupWidget.Focus();
}