aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/Wrapper.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-03-15 17:56:20 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-03-18 15:38:21 +0100
commitb1810f1f58d44a3d4779bf4f0c5858a52444ec29 (patch)
tree206059d4fea3d5d05d106a11f10273129e5ed3d1 /src/GraphicObjects/Wrapper.cs
parentc94c0f4ad2f762b7e187e8e660cd702efb3e3ea9 (diff)
testing with requestedLayouting fieldRequestedLayoutings
Diffstat (limited to 'src/GraphicObjects/Wrapper.cs')
-rw-r--r--src/GraphicObjects/Wrapper.cs7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/GraphicObjects/Wrapper.cs b/src/GraphicObjects/Wrapper.cs
index a7f5f73b..9efb989c 100644
--- a/src/GraphicObjects/Wrapper.cs
+++ b/src/GraphicObjects/Wrapper.cs
@@ -118,7 +118,7 @@ namespace Crow
#endregion
#region GraphicObject Overrides
- protected override int measureRawSize (LayoutingType lt)
+ protected override int measureRawSize(LayoutingType lt)
{
int tmp = 0;
//Wrapper can't fit in the opposite direction of the wrapper, this func is called only if Fit
@@ -194,7 +194,6 @@ namespace Crow
return tmp + tallestChild + 2 * Margin;
}
}
-
public override bool UpdateLayout (LayoutingType layoutType)
{
RegisteredLayoutings &= (~layoutType);
@@ -205,9 +204,7 @@ namespace Crow
ComputeChildrenPositions ();
- //if no layouting remains in queue for item, registre for redraw
- if (RegisteredLayoutings == LayoutingType.None && IsDirty)
- IFace.EnqueueForRepaint (this);
+ EnqueueForRepaint ();
return true;
}