diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-03-15 17:56:20 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-03-18 15:38:21 +0100 |
| commit | b1810f1f58d44a3d4779bf4f0c5858a52444ec29 (patch) | |
| tree | 206059d4fea3d5d05d106a11f10273129e5ed3d1 /src/GraphicObjects/Group.cs | |
| parent | c94c0f4ad2f762b7e187e8e660cd702efb3e3ea9 (diff) | |
testing with requestedLayouting fieldRequestedLayoutings
Diffstat (limited to 'src/GraphicObjects/Group.cs')
| -rw-r--r-- | src/GraphicObjects/Group.cs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/GraphicObjects/Group.cs b/src/GraphicObjects/Group.cs index a90947a5..ebf75d64 100644 --- a/src/GraphicObjects/Group.cs +++ b/src/GraphicObjects/Group.cs @@ -243,14 +243,14 @@ namespace Crow if (largestChild == null) { //if still null, not possible to determine a width //because all children are stretched, force first one to fit - Children [0].Width = Measure.Fit; + //Children [0].Width = Measure.Fit; return -1;//cancel actual sizing to let child computation take place } } else { if (tallestChild == null) searchTallestChild (); if (tallestChild == null) { - Children [0].Height = Measure.Fit; + //Children [0].Height = Measure.Fit; return -1; } } @@ -394,6 +394,7 @@ namespace Crow #endif largestChild = null; contentSize.Width = 0; + childrenRWLock.EnterReadLock (); for (int i = 0; i < Children.Count; i++) { if (!Children [i].Visible) continue; @@ -404,6 +405,7 @@ namespace Crow largestChild = Children [i]; } } + childrenRWLock.ExitReadLock (); } void searchTallestChild(){ #if DEBUG_LAYOUTING @@ -411,6 +413,7 @@ namespace Crow #endif tallestChild = null; contentSize.Height = 0; + childrenRWLock.EnterReadLock (); for (int i = 0; i < Children.Count; i++) { if (!Children [i].Visible) continue; @@ -421,6 +424,7 @@ namespace Crow tallestChild = Children [i]; } } + childrenRWLock.ExitReadLock (); } |