aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/GenericStack.cs
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2016-02-06 12:52:31 +0100
committerjpbruyere <jp.bruyere@hotmail.com>2016-02-06 12:52:31 +0100
commit10f12671dcbbaa2ef0e5723bbf84e88cdeaf98e1 (patch)
tree1baa33ec6811f6fc7d6df05ed574840c83e1f307 /src/GraphicObjects/GenericStack.cs
parent4aad1e6e4fdb1059cbd43700c207b363f325f0e8 (diff)
prevent stretched child from positionning in the direction of the stack
Diffstat (limited to 'src/GraphicObjects/GenericStack.cs')
-rw-r--r--src/GraphicObjects/GenericStack.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/GraphicObjects/GenericStack.cs b/src/GraphicObjects/GenericStack.cs
index 5a83be72..c49c5307 100644
--- a/src/GraphicObjects/GenericStack.cs
+++ b/src/GraphicObjects/GenericStack.cs
@@ -96,13 +96,15 @@ namespace Crow
foreach (GraphicObject c in Children.Where(ch=>ch.Visible)) {
c.Slot.X = d;
d += c.Slot.Width + Spacing;
- c.RegisterForLayouting (LayoutingType.Y);
+ if (c.Height != 0)
+ c.RegisterForLayouting (LayoutingType.Y);
}
} else {
foreach (GraphicObject c in Children.Where(ch=>ch.Visible)) {
c.Slot.Y = d;
d += c.Slot.Height + Spacing;
- c.RegisterForLayouting (LayoutingType.X);
+ if (c.Width != 0)
+ c.RegisterForLayouting (LayoutingType.X);
}
}
bmp = null;