aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/GenericStack.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/GraphicObjects/GenericStack.cs')
-rw-r--r--src/GraphicObjects/GenericStack.cs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/GraphicObjects/GenericStack.cs b/src/GraphicObjects/GenericStack.cs
index d4e3ae5d..e2bdcf7a 100644
--- a/src/GraphicObjects/GenericStack.cs
+++ b/src/GraphicObjects/GenericStack.cs
@@ -108,16 +108,15 @@ namespace Crow
bmp = null;
}
- public override void RegisterForLayouting (int layoutType)
+ public override void EnqueueForLayouting ()
{
if (Parent == null)
return;
- base.RegisterForLayouting (layoutType);
+ base.EnqueueForLayouting ();
- if ((layoutType & (int)LayoutingType.PositionChildren) > 0)
+ if (RegisteredLayoutings.HasFlag(LayoutingType.PositionChildren))
Interface.LayoutingQueue.Enqueue (LayoutingType.PositionChildren, this);
-
}
public override void UpdateLayout (LayoutingType layoutType)
{