diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-03-15 00:25:23 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-03-15 00:25:23 +0100 |
| commit | c6da15c4ffed4fd9a54a4c3668853e2564150326 (patch) | |
| tree | 1b3b108409d1ba39f8cfeebcdb8378662779bcb8 /src/GraphicObjects/DockStack.cs | |
| parent | 709e0b82e0f5445082b7efb67bdc24d2cf6df6ba (diff) | |
remove docker, floating dockingwin should be added to iface
Diffstat (limited to 'src/GraphicObjects/DockStack.cs')
| -rw-r--r-- | src/GraphicObjects/DockStack.cs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/GraphicObjects/DockStack.cs b/src/GraphicObjects/DockStack.cs index caefb2ec..cdd43d80 100644 --- a/src/GraphicObjects/DockStack.cs +++ b/src/GraphicObjects/DockStack.cs @@ -30,9 +30,7 @@ namespace Crow { [DesignIgnore] public class DockStack : GenericStack - { - Docker rootDock { get { return LogicalParent as Docker; }} - + { #region CTor public DockStack () {} public DockStack (Interface iface) : base (iface) {} @@ -41,7 +39,10 @@ namespace Crow public override void AddChild (GraphicObject g) { base.AddChild (g); - g.LogicalParent = this.LogicalParent; + if (localLogicalParentIsNull) + g.LogicalParent = this; + else + g.LogicalParent = this.LogicalParent; } public override void InsertChild (int idx, GraphicObject g) { |