diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-03-16 14:24:19 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-03-16 14:24:19 +0100 |
| commit | ca044e13440ffe5b8a768fad1cd8698b2d36cf75 (patch) | |
| tree | e1d0fdc04a82394221e0478b3c80e683496ad8bf /src/GraphicObjects/Group.cs | |
| parent | 82258b8d3d42ef349faee7a996c9b198fa613361 (diff) | |
add fit firstDbgEvent
Diffstat (limited to 'src/GraphicObjects/Group.cs')
| -rw-r--r-- | src/GraphicObjects/Group.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/GraphicObjects/Group.cs b/src/GraphicObjects/Group.cs index c8bf3f65..bb3078f3 100644 --- a/src/GraphicObjects/Group.cs +++ b/src/GraphicObjects/Group.cs @@ -285,11 +285,23 @@ namespace Crow //if (HeightPolicy == Measure.Fit) { if (tallestChild == null) searchTallestChild (true); + if (tallestChild == null) { + if (Children.Count > 0) + Children [0].Height = Measure.Fit; + else + tallestChild.Height = Measure.Fit; + } //} } else if (lt == LayoutingType.Width) { //if (WidthPolicy == Measure.Fit) { if (largestChild == null) searchLargestChild (true); + if (largestChild == null) { + if (Children.Count > 0) + Children [0].Width = Measure.Fit; + else + largestChild.Width = Measure.Fit; + } //} } } |