aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/Grid.cs
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2016-02-06 07:11:22 +0100
committerjpbruyere <jp.bruyere@hotmail.com>2016-02-06 07:11:22 +0100
commit643d44f381962d6814d3676cee322c41018406eb (patch)
tree313429713063c06ec57e675682e7a6c176e62e22 /src/GraphicObjects/Grid.cs
parent27c400b4aa2195ee0ea17af803919ae677b9fff7 (diff)
2 step, 1=> Simple Register, 2=> Enqueue with priority checking
Diffstat (limited to 'src/GraphicObjects/Grid.cs')
-rw-r--r--src/GraphicObjects/Grid.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/GraphicObjects/Grid.cs b/src/GraphicObjects/Grid.cs
index 1981fc60..571fdc0f 100644
--- a/src/GraphicObjects/Grid.cs
+++ b/src/GraphicObjects/Grid.cs
@@ -125,11 +125,11 @@ namespace Crow
}
}
- public override void RegisterForLayouting (int layoutType)
+ public override void EnqueueForLayouting ()
{
- 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)