aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/Popper.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2017-01-30 12:09:57 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2017-01-30 12:09:57 +0100
commit2d1fd70ffa422dfdcf25a8c39ae9f4806c57c6ed (patch)
tree5863ec9bca19d06daacc12b131073877f4b8b930 /src/GraphicObjects/Popper.cs
parentdc603ff31253879bb8effb6d529f266ff78e9f3e (diff)
make publi Initialize func of GraphicObj, test logical parent in popper to allow shared content, test parent == null on visible changed
Diffstat (limited to 'src/GraphicObjects/Popper.cs')
-rw-r--r--src/GraphicObjects/Popper.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/GraphicObjects/Popper.cs b/src/GraphicObjects/Popper.cs
index 8c79ce24..0b022842 100644
--- a/src/GraphicObjects/Popper.cs
+++ b/src/GraphicObjects/Popper.cs
@@ -229,6 +229,8 @@ namespace Crow
Content.Visible = true;
if (Content.Parent == null)
CurrentInterface.AddWidget (Content, true);
+ if (Content.LogicalParent != this)
+ Content.LogicalParent = this;
CurrentInterface.PutOnTop (Content, true);
_content_LayoutChanged (this, new LayoutingEventArgs (LayoutingType.Sizing));
}