From 549bd38b6bc082b9d1e0be27ab30a172b622c190 Mon Sep 17 00:00:00 2001 From: jpbruyere Date: Sun, 6 Sep 2015 09:09:09 +0200 Subject: debug --- src/GraphicObjects/GenericStack.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/GraphicObjects/GenericStack.cs') diff --git a/src/GraphicObjects/GenericStack.cs b/src/GraphicObjects/GenericStack.cs index 20130576..fc7aa247 100644 --- a/src/GraphicObjects/GenericStack.cs +++ b/src/GraphicObjects/GenericStack.cs @@ -125,7 +125,7 @@ namespace go else if (gobjs.Length == 1) { int sz = Children.Where(ch=>ch.Visible).Except (gobjs).Sum (g => g.Slot.Width); if (sz < Slot.Width) { - gobjs [0].Slot.Width = Slot.Width - sz - (Children.Count+1) * Spacing; + gobjs [0].Slot.Width = Slot.Width - sz - (Children.Count-1) * Spacing; int idx = Children.IndexOf (gobjs [0]); if (idx > 0 && idx < Children.Count - 1) gobjs [0].Slot.Width -= Spacing; @@ -145,7 +145,7 @@ namespace go else if (gobjs.Length == 1) { int sz = Children.Where(ch=>ch.Visible).Except (gobjs).Sum (g => g.Slot.Height); if (sz < Slot.Height) { - gobjs [0].Slot.Height = Slot.Height - sz; + gobjs [0].Slot.Height = Slot.Height - sz- (Children.Count-1) * Spacing; int idx = Children.IndexOf (gobjs [0]); if (idx > 0 && idx < Children.Count - 1) gobjs [0].Slot.Height -= Spacing; -- cgit v1.3.1-4-g156e