From 61d1d07d37a5cc9d6ae1c4fcc333ec8ae644aca3 Mon Sep 17 00:00:00 2001 From: jpbruyere Date: Tue, 16 Feb 2016 14:35:14 +0100 Subject: improve layouting debug output --- src/GraphicObjects/GenericStack.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/GraphicObjects/GenericStack.cs') diff --git a/src/GraphicObjects/GenericStack.cs b/src/GraphicObjects/GenericStack.cs index 7f4dbea8..bbbc52ec 100644 --- a/src/GraphicObjects/GenericStack.cs +++ b/src/GraphicObjects/GenericStack.cs @@ -83,9 +83,6 @@ namespace Crow } public virtual void ComputeChildrenPositions() { - #if DEBUG_LAYOUTING - Debug.WriteLine("ComputeChildrenPosition: " + this.ToString()); - #endif int d = 0; if (Orientation == Orientation.Horizontal) { foreach (GraphicObject c in Children) { @@ -149,6 +146,9 @@ namespace Crow if (stretchedGO.LastSlots.Width != tmpWidth) { stretchedGO.Slot.Width = tmpWidth; stretchedGO.bmp = null; + #if DEBUG_LAYOUTING + Debug.WriteLine ("\tAdjusting Width of " + stretchedGO.ToString()); + #endif stretchedGO.OnLayoutChanges (LayoutingType.Width); stretchedGO.LastSlots.Width = stretchedGO.Slot.Width; } @@ -184,6 +184,9 @@ namespace Crow if (stretchedGO.LastSlots.Height != tmpHeight) { stretchedGO.Slot.Height = tmpHeight; stretchedGO.bmp = null; + #if DEBUG_LAYOUTING + Debug.WriteLine ("\tAdjusting Height of " + stretchedGO.ToString()); + #endif stretchedGO.OnLayoutChanges (LayoutingType.Height); stretchedGO.LastSlots.Height = stretchedGO.Slot.Height; } -- cgit v1.3.1-4-g156e