aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/GraphicObject.cs
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2017-01-25 09:52:57 +0100
committerjpbruyere <jp.bruyere@hotmail.com>2017-01-25 09:52:57 +0100
commit3938a2aa5bc6e925f5dc9b2ed687bb101ecc0aad (patch)
tree3833bd3e5b60c730def2e3490586b347e9a92e9b /src/GraphicObjects/GraphicObject.cs
parent2ffad673c182840a70909a74ec3fd9f83cd76660 (diff)
hover debug on Visible state changes => trigger mouseMove
Diffstat (limited to 'src/GraphicObjects/GraphicObject.cs')
-rw-r--r--src/GraphicObjects/GraphicObject.cs8
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);
}