diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2017-01-25 09:52:57 +0100 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2017-01-25 09:52:57 +0100 |
| commit | a519d07929a490ac9bfade86355865744787f311 (patch) | |
| tree | 8f46b77e2df5e0b9116875eaf2c468f19a493114 /src | |
| parent | 5aea8651b674c26b9395d1b1077a287a1e885b58 (diff) | |
hover debug on Visible state changes => trigger mouseMove
Diffstat (limited to 'src')
| -rw-r--r-- | src/GraphicObjects/GraphicObject.cs | 8 |
1 files 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); } |