diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-03-15 17:56:20 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-03-18 15:38:21 +0100 |
| commit | b1810f1f58d44a3d4779bf4f0c5858a52444ec29 (patch) | |
| tree | 206059d4fea3d5d05d106a11f10273129e5ed3d1 /src/GraphicObjects/PrivateContainer.cs | |
| parent | c94c0f4ad2f762b7e187e8e660cd702efb3e3ea9 (diff) | |
testing with requestedLayouting fieldRequestedLayoutings
Diffstat (limited to 'src/GraphicObjects/PrivateContainer.cs')
| -rw-r--r-- | src/GraphicObjects/PrivateContainer.cs | 8 |
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; |