diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-02-06 12:52:31 +0100 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-02-06 12:52:31 +0100 |
| commit | 10f12671dcbbaa2ef0e5723bbf84e88cdeaf98e1 (patch) | |
| tree | 1baa33ec6811f6fc7d6df05ed574840c83e1f307 /src | |
| parent | 4aad1e6e4fdb1059cbd43700c207b363f325f0e8 (diff) | |
prevent stretched child from positionning in the direction of the stack
Diffstat (limited to 'src')
| -rw-r--r-- | src/GraphicObjects/GenericStack.cs | 6 |
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; |