else
Slot.Width = Parent.ClientRectangle.Width * Width / 100;
+ if (Slot.Width == int.MinValue)
+ return false;
+
//size constrain
if (Slot.Width < MinimumSize.Width) {
Slot.Width = MinimumSize.Width;
else
Slot.Height = Parent.ClientRectangle.Height * Height.Value / 100;
+ if (Slot.Height == int.MinValue)
+ return false;
+
//size constrain
if (Slot.Height < MinimumSize.Height) {
Slot.Height = MinimumSize.Height;
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)
{