aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/Group.cs
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2015-10-21 12:03:07 +0200
committerjpbruyere <jp.bruyere@hotmail.com>2015-10-21 12:03:07 +0200
commit671366cd56e7d6b2a2afb0839e7fb0f895cb2df3 (patch)
tree90f6fa1c31a438ba0e417729de74ef4ad7478f27 /src/GraphicObjects/Group.cs
parentfb4a1ac8c2a42af8982ac4c97795c8d167550894 (diff)
reset scrollX and Y when scroller child is group and it's children
have been cleared
Diffstat (limited to 'src/GraphicObjects/Group.cs')
-rw-r--r--src/GraphicObjects/Group.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/GraphicObjects/Group.cs b/src/GraphicObjects/Group.cs
index 78378aa8..bf04617d 100644
--- a/src/GraphicObjects/Group.cs
+++ b/src/GraphicObjects/Group.cs
@@ -19,6 +19,10 @@ namespace go
}
#endregion
+ #region EVENT HANDLERS
+ public event EventHandler<EventArgs> ChildrenCleared;
+ #endregion
+
bool _multiSelect = false;
List<GraphicObject> children = new List<GraphicObject>();
@@ -63,6 +67,7 @@ namespace go
Children.Remove(g);
}
this.RegisterForLayouting ((int)LayoutingType.Sizing);
+ ChildrenCleared.Raise (this, new EventArgs ());
}
public void putWidgetOnTop(GraphicObject w)
{