aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/PrivateContainer.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-03-15 17:56:20 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-03-18 15:38:21 +0100
commitb1810f1f58d44a3d4779bf4f0c5858a52444ec29 (patch)
tree206059d4fea3d5d05d106a11f10273129e5ed3d1 /src/GraphicObjects/PrivateContainer.cs
parentc94c0f4ad2f762b7e187e8e660cd702efb3e3ea9 (diff)
testing with requestedLayouting fieldRequestedLayoutings
Diffstat (limited to 'src/GraphicObjects/PrivateContainer.cs')
-rw-r--r--src/GraphicObjects/PrivateContainer.cs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/GraphicObjects/PrivateContainer.cs b/src/GraphicObjects/PrivateContainer.cs
index d6637247..f3f6dbf1 100644
--- a/src/GraphicObjects/PrivateContainer.cs
+++ b/src/GraphicObjects/PrivateContainer.cs
@@ -68,9 +68,13 @@ namespace Crow
contentSize = default(Size);
child.LayoutChanged -= OnChildLayoutChanges;
this.RegisterForGraphicUpdate ();
- }
- child = _child as GraphicObject;
+ GraphicObject tmp = child;
+ child = null;
+ tmp.Parent = null;
+ }
+
+ child = _child;
if (child != null) {
child.Parent = this;