Only display slice settings popovers for the FirstUnderMouse widget

- Issue MatterHackers/MCCentral#4738
Expand All menu item click failure
This commit is contained in:
John Lewin 2018-12-19 17:26:07 -08:00
parent b12f6af750
commit 4d4c4cff8f

View file

@ -440,12 +440,16 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
settingsRow.MouseEnterBounds += (s, e) =>
{
// Only display popovers when we're the active widget, exit if we're not first under mouse
if (!this.FirstWidgetUnderMouse)
{
return;
}
settingsRow.Focus();
int p2 = (int)(thisRow.Height / 2);
Console.WriteLine("RowHeight: {0} - {1}", thisRow.Height, p2);
var tagContainer = new Popover(Popover.ArrowDirection.Right, new BorderDouble(15, 10), 7, p2)
{
HAnchor = HAnchor.Fit,
@ -471,7 +475,6 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
AltMate = new MateOptions(MateEdge.Left, MateEdge.Bottom)
});
Console.WriteLine("Set previousBubble");
previousBubble = tagContainer;
};
}