diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-02-06 07:11:22 +0100 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-02-06 07:11:22 +0100 |
| commit | 643d44f381962d6814d3676cee322c41018406eb (patch) | |
| tree | 313429713063c06ec57e675682e7a6c176e62e22 /src/GraphicObjects/GenericStack.cs | |
| parent | 27c400b4aa2195ee0ea17af803919ae677b9fff7 (diff) | |
2 step, 1=> Simple Register, 2=> Enqueue with priority checking
Diffstat (limited to 'src/GraphicObjects/GenericStack.cs')
| -rw-r--r-- | src/GraphicObjects/GenericStack.cs | 7 |
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) { |