diff options
| author | jp <jp_bruyere@hotmail.com> | 2016-04-19 12:02:54 +0200 |
|---|---|---|
| committer | jp <jp_bruyere@hotmail.com> | 2016-04-19 12:02:54 +0200 |
| commit | 8f841bd580d8a1ed3fd341e83dce478d9a9ca6bb (patch) | |
| tree | e9063d2a8534915ffc3af7eda946ad9afe1e6d7b /src/GraphicObjects/PrivateContainer.cs | |
| parent | e99931681315513110cd7be2053c1e51e14c08c1 (diff) | |
use int.MinValue as error mark while measuring object to requeue Layouting
Diffstat (limited to 'src/GraphicObjects/PrivateContainer.cs')
| -rw-r--r-- | src/GraphicObjects/PrivateContainer.cs | 4 |
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) { |