From 3938a2aa5bc6e925f5dc9b2ed687bb101ecc0aad Mon Sep 17 00:00:00 2001 From: jpbruyere Date: Wed, 25 Jan 2017 09:52:57 +0100 Subject: [PATCH] hover debug on Visible state changes => trigger mouseMove --- src/GraphicObjects/GraphicObject.cs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/GraphicObjects/GraphicObject.cs b/src/GraphicObjects/GraphicObject.cs index 1e8bfcf9..574870f8 100644 --- a/src/GraphicObjects/GraphicObject.cs +++ b/src/GraphicObjects/GraphicObject.cs @@ -506,12 +506,6 @@ namespace Crow isVisible = value; - //ensure main win doesn't keep hidden childrens ref - if (CurrentInterface.HoverWidget != null) { - if (!isVisible && this.Contains (CurrentInterface.HoverWidget)) - CurrentInterface.HoverWidget = null; - } - if (isVisible) RegisterForLayouting (LayoutingType.Sizing); else { @@ -523,6 +517,8 @@ namespace Crow LastSlots.Width = LastSlots.Height = 0; } + //trigger a mouse to handle possible hover changes + CurrentInterface.ProcessMouseMove (CurrentInterface.Mouse.X, CurrentInterface.Mouse.Y); NotifyValueChanged ("Visible", isVisible); } -- 2.47.3