aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/GenericStack.cs
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2015-05-02 09:19:19 +0200
committerjpbruyere <jp.bruyere@hotmail.com>2015-05-02 09:19:19 +0200
commit40392cc3bcaee5b67d85b0aabfd42d2881823bd6 (patch)
tree809bc55854f13cb031d26129e7db24076119bca0 /src/GraphicObjects/GenericStack.cs
parentc88d3c2e0b3e9e69df5f1879b9d8935d3ae0d390 (diff)
Layouting queue, debug
test4 validated
Diffstat (limited to 'src/GraphicObjects/GenericStack.cs')
-rw-r--r--src/GraphicObjects/GenericStack.cs15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/GraphicObjects/GenericStack.cs b/src/GraphicObjects/GenericStack.cs
index 04e63d15..f34e13d3 100644
--- a/src/GraphicObjects/GenericStack.cs
+++ b/src/GraphicObjects/GenericStack.cs
@@ -24,8 +24,9 @@ namespace go
public override T addChild<T> (T child)
{
+ T tmp = base.addChild (child);
this.RegisterForLayouting ((int)LayoutingType.PositionChildren);
- return base.addChild (child);
+ return tmp;
}
public override void removeChild (GraphicObject child)
{
@@ -96,17 +97,7 @@ namespace go
}
}
}
-// public void RegisterForLayouting ()
-// {
-// base.RegisterForLayouting ();
-//
-// int idx = Interface.LayoutingQueue.IndexOf (Interface.LayoutingQueue.Where (lq => lq.GraphicObject.Parent == this).LastOrDefault ());
-// if (idx < 0)
-// return;
-// Interface.LayoutingQueue.Insert (
-// idx+1,
-// new LayoutingQueueItem (LayoutingType.PositionChildren, this));
-// }
+
public override void RegisterForLayouting (int layoutType)
{
base.RegisterForLayouting (layoutType);