diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-02-17 08:44:34 +0100 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-02-17 08:44:34 +0100 |
| commit | a8156b149f2e4a3c087bcb090db293d08116bd67 (patch) | |
| tree | 51dd4165422863f70c656de8e0bbfa7c079142bb /src/LayoutingQueueItem.cs | |
| parent | 3c1dbdbbc58d38d45276e3147c3717d19a69adf2 (diff) | |
| parent | bf27b88a6cbfcc65d7ed6360f9193d52f96b1598 (diff) | |
Merge branch 'DefTemplateSizing0'
Diffstat (limited to 'src/LayoutingQueueItem.cs')
| -rw-r--r-- | src/LayoutingQueueItem.cs | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/LayoutingQueueItem.cs b/src/LayoutingQueueItem.cs index 03a39c5c..ef56d6c6 100644 --- a/src/LayoutingQueueItem.cs +++ b/src/LayoutingQueueItem.cs @@ -32,8 +32,7 @@ namespace Crow Width = 0x04, Height = 0x08, Sizing = 0x0C, - PositionChildren = 0x10, - ChildAddition = 0x20, + ArrangeChildren = 0x10, All = 0xFF } @@ -57,18 +56,20 @@ namespace Crow Debug.WriteLine ("ERROR: processLayouting, no parent for: " + this.ToString ()); return; } + #if DEBUG_LAYOUTING + Debug.WriteLine ("Layouting => " + this.ToString ()); + #endif if (!GraphicObject.UpdateLayout (LayoutType)) { #if DEBUG_LAYOUTING - Debug.WriteLine ("Requeuing => " + this.ToString ()); + Debug.WriteLine ("\tRequeuing => " + this.ToString ()); #endif GraphicObject.LayoutingTries ++; - if (GraphicObject.LayoutingTries < Interface.MaxLayoutingTries) + if (GraphicObject.LayoutingTries < Interface.MaxLayoutingTries) { + GraphicObject.RegisteredLayoutings |= LayoutType; Interface.LayoutingQueue.Enqueue (this); + } } else { GraphicObject.LayoutingTries = 0; - #if DEBUG_LAYOUTING - Debug.WriteLine ("Layouting => " + this.ToString ()); - #endif } } |