aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/GenericStack.cs
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2016-02-16 14:35:14 +0100
committerjpbruyere <jp.bruyere@hotmail.com>2016-02-16 14:44:47 +0100
commit61d1d07d37a5cc9d6ae1c4fcc333ec8ae644aca3 (patch)
treef8d1b14df78c24cd989ac02581bd7028fb1c92f8 /src/GraphicObjects/GenericStack.cs
parent3249b270c5bd2f33aaa878e17bcc0f570cc8ea56 (diff)
improve layouting debug output
Diffstat (limited to 'src/GraphicObjects/GenericStack.cs')
-rw-r--r--src/GraphicObjects/GenericStack.cs9
1 files changed, 6 insertions, 3 deletions
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;
}