aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/Group.cs
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2015-09-07 16:19:58 +0200
committerjpbruyere <jp.bruyere@hotmail.com>2015-09-07 16:19:58 +0200
commit967f9bbeca46517f3d94d1eb4b04a3e36c8a31f0 (patch)
treed6fb1e98074c85ecdb934c964da8418c16652baf /src/GraphicObjects/Group.cs
parentac08ff01dbc59628a94a6e09cd0aff07f588f05f (diff)
Dynamic layouting debug and improvments
Diffstat (limited to 'src/GraphicObjects/Group.cs')
-rw-r--r--src/GraphicObjects/Group.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/GraphicObjects/Group.cs b/src/GraphicObjects/Group.cs
index 41294231..b21598c9 100644
--- a/src/GraphicObjects/Group.cs
+++ b/src/GraphicObjects/Group.cs
@@ -125,6 +125,9 @@ namespace go
int crw = ClientRectangle.Width;
foreach (GraphicObject c in Children.Where(ch => ch.Slot.Width != crw && ch.Visible))
c.RegisterForLayouting ((int)LayoutingType.X);
+ } else {
+ foreach (GraphicObject c in Children.Where(ch => ch.Width == 0 && ch.Visible))
+ c.RegisterForLayouting ((int)LayoutingType.Width);
}
break;
case LayoutingType.Height:
@@ -132,6 +135,9 @@ namespace go
int crh = ClientRectangle.Height;
foreach (GraphicObject c in Children.Where(ch => ch.Slot.Height != crh && ch.Visible))
c.RegisterForLayouting ((int)LayoutingType.Y);
+ } else {
+ foreach (GraphicObject c in Children.Where(ch => ch.Height == 0 && ch.Visible))
+ c.RegisterForLayouting ((int)LayoutingType.Height);
}
break;
}