aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/PrivateContainer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/GraphicObjects/PrivateContainer.cs')
-rw-r--r--src/GraphicObjects/PrivateContainer.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/GraphicObjects/PrivateContainer.cs b/src/GraphicObjects/PrivateContainer.cs
index 98e8d4b1..f4bc3aba 100644
--- a/src/GraphicObjects/PrivateContainer.cs
+++ b/src/GraphicObjects/PrivateContainer.cs
@@ -96,10 +96,10 @@ namespace Crow
return base.measureRawSize (lt);
if (lt == LayoutingType.Width)
return child.RegisteredLayoutings.HasFlag(LayoutingType.Width) ?
- -1 : child.Slot.Size.Width + 2 * Margin;
+ int.MinValue : child.Slot.Size.Width + 2 * Margin;
else
return child.RegisteredLayoutings.HasFlag(LayoutingType.Height) ?
- -1 : child.Slot.Size.Height + 2 * Margin;
+ int.MinValue : child.Slot.Size.Height + 2 * Margin;
}
public override bool UpdateLayout (LayoutingType layoutType)
{