From: jpbruyere Date: Wed, 25 Jan 2017 08:52:57 +0000 (+0100) Subject: hover debug on Visible state changes => trigger mouseMove X-Git-Tag: v0.9.5-beta~259^2~3 X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=a519d07929a490ac9bfade86355865744787f311;p=jp%2Fcrow.git hover debug on Visible state changes => trigger mouseMove --- 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); }